From 4948bec8d556638b7821a350d85e6ba1e3fe2cee Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 22 May 2021 19:45:05 +0200 Subject: [PATCH] Fix is_on attr not being used in binary sensor (#50968) --- homeassistant/components/binary_sensor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/binary_sensor/__init__.py b/homeassistant/components/binary_sensor/__init__.py index 9bf53407b38..c7e1bac9952 100644 --- a/homeassistant/components/binary_sensor/__init__.py +++ b/homeassistant/components/binary_sensor/__init__.py @@ -154,7 +154,7 @@ class BinarySensorEntity(Entity): @property def is_on(self) -> bool | None: """Return true if the binary sensor is on.""" - return None + return self._attr_is_on @property def state(self) -> StateType: