Skip to content

Commit 2146c71

Browse files
rhammengithub-actions[bot]
authored andcommitted
chore: format code with ruff
1 parent 394a2a8 commit 2146c71

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

custom_components/luxtronik/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,11 @@ def compute_is_on(self, state: Any) -> bool:
193193
state = bool(state)
194194

195195
is_on = bool(
196-
state == descr.on_state
197-
or (descr.on_states and state in descr.on_states)
196+
state == descr.on_state or (descr.on_states and state in descr.on_states)
198197
)
199198

200199
return not is_on if descr.inverted else is_on
201200

202-
203201
def _enrich_extra_attributes(self) -> None:
204202
for attr in self.entity_description.extra_attributes:
205203
if attr.format is None and (

0 commit comments

Comments
 (0)