mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix is_on attr not being used in binary sensor (#50968)
This commit is contained in:
parent
a03ee1e528
commit
4948bec8d5
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user