forked from home-assistant/core
Fix is_on attr not being used in binary sensor (#50968)
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user