We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 394a2a8 commit 2146c71Copy full SHA for 2146c71
custom_components/luxtronik/base.py
@@ -193,13 +193,11 @@ def compute_is_on(self, state: Any) -> bool:
193
state = bool(state)
194
195
is_on = bool(
196
- state == descr.on_state
197
- or (descr.on_states and state in descr.on_states)
+ state == descr.on_state or (descr.on_states and state in descr.on_states)
198
)
199
200
return not is_on if descr.inverted else is_on
201
202
-
203
def _enrich_extra_attributes(self) -> None:
204
for attr in self.entity_description.extra_attributes:
205
if attr.format is None and (
0 commit comments