mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +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
|
@property
|
||||||
def is_on(self) -> bool | None:
|
def is_on(self) -> bool | None:
|
||||||
"""Return true if the binary sensor is on."""
|
"""Return true if the binary sensor is on."""
|
||||||
return None
|
return self._attr_is_on
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self) -> StateType:
|
def state(self) -> StateType:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user