1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00

Address late review of #63238 (#63358)

This commit is contained in:
Chris Talkington 2022-01-04 02:16:47 -06:00 committed by GitHub
parent 4177644c68
commit 2d0aaeba6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)