Skip to content

Commit 2797134

Browse files
author
autoruff
committed
fixup: dhw_update Python code fixed using ruff
1 parent bcbfdc3 commit 2797134

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

plugwise/helper.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,9 @@ def _collect_appliance_data(
419419
appliance := self._domain_objects.find(f'./appliance[@id="{entity_id}"]')
420420
) is not None:
421421
# Collect the cooling enabled toggle state
422-
self._get_toggle_state(appliance, "cooling_enabled", "cooling_ena_switch", data)
422+
self._get_toggle_state(
423+
appliance, "cooling_enabled", "cooling_ena_switch", data
424+
)
423425

424426
self._appliance_measurements(appliance, data, measurements)
425427
self._get_lock_state(appliance, data)
@@ -473,7 +475,9 @@ def _appliance_measurements(
473475
if self._dhw_allowed_modes:
474476
data["select_dhw_mode"] = appl_p_loc.text
475477
if old_measurement == "domestic_hot_water_comfort_mode":
476-
data["select_dhw_mode"] = "comfort" if appl_p_loc.text == "on" else "off"
478+
data["select_dhw_mode"] = (
479+
"comfort" if appl_p_loc.text == "on" else "off"
480+
)
477481

478482
common_match_cases(measurement, attrs, appl_p_loc, data)
479483

0 commit comments

Comments
 (0)