mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Fix is_on attr not being used in binary sensor (#50968)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user