Update tailscale to 0.2.0 (#65318)

This commit is contained in:
Franck Nijhof 2022-01-31 18:17:35 +01:00 committed by GitHub
parent 441e81c02a
commit e5b6a58fab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 7 deletions

View file

@ -111,8 +111,6 @@ class TailscaleBinarySensorEntity(TailscaleEntity, BinarySensorEntity):
entity_description: TailscaleBinarySensorEntityDescription
@property
def is_on(self) -> bool:
def is_on(self) -> bool | None:
"""Return the state of the sensor."""
return bool(
self.entity_description.is_on_fn(self.coordinator.data[self.device_id])
)
return self.entity_description.is_on_fn(self.coordinator.data[self.device_id])