We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_on
1 parent 378e536 commit e03ef3bCopy full SHA for e03ef3b
1 file changed
zha/application/platforms/siren.py
@@ -113,9 +113,14 @@ def info_object(self) -> SirenEntityInfo:
113
def state(self) -> dict[str, Any]:
114
"""Get the state of the siren."""
115
response = super().state
116
- response["state"] = self._attr_is_on
+ response["state"] = self.is_on
117
return response
118
119
+ @property
120
+ def is_on(self) -> bool:
121
+ """Return true if the entity is on."""
122
+ return self._attr_is_on
123
+
124
async def async_turn_on(self, **kwargs: Any) -> None:
125
"""Turn on siren."""
126
if self._off_listener:
0 commit comments