From 2d0aaeba6b4a7fdfdad88591a675e50842fb0f72 Mon Sep 17 00:00:00 2001 From: Chris Talkington Date: Tue, 4 Jan 2022 02:16:47 -0600 Subject: [PATCH] Address late review of #63238 (#63358) --- homeassistant/components/roku/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/roku/binary_sensor.py b/homeassistant/components/roku/binary_sensor.py index f7b40def249..5b6da073dd1 100644 --- a/homeassistant/components/roku/binary_sensor.py +++ b/homeassistant/components/roku/binary_sensor.py @@ -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)