mirror of
https://github.com/home-assistant/core
synced 2024-08-02 23:40:32 +02:00
parent
4177644c68
commit
2d0aaeba6b
@ -88,6 +88,6 @@ class RokuBinarySensorEntity(RokuEntity, BinarySensorEntity):
|
||||
entity_description: RokuBinarySensorEntityDescription
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool:
|
||||
def is_on(self) -> bool | None:
|
||||
"""Return the state of the sensor."""
|
||||
return bool(self.entity_description.value_fn(self.coordinator.data))
|
||||
return self.entity_description.value_fn(self.coordinator.data)
|
||||
|
Loading…
Reference in New Issue
Block a user