Skip to content

Commit d2b2c1b

Browse files
author
autoblack
committed
fixup: max_b_temp_bug Python code reformatted using Black
1 parent 27936c0 commit d2b2c1b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plugwise/helper.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,14 +973,17 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
973973
if "c_heating_state" in data:
974974
if self._elga or (
975975
self.smile_name in ("Adam", "Smile Anna") and self._on_off_device
976-
):
976+
):
977977
data["heating_state"] = data["c_heating_state"]
978-
if "intended_boiler_temperature" in data and data["intended_boiler_temperature"] == 0:
978+
if (
979+
"intended_boiler_temperature" in data
980+
and data["intended_boiler_temperature"] == 0
981+
):
979982
data["heating_state"] = False
980983
# For Adam + OnOff cooling, central_heating_state = True means cooling is active
981984
# For Smile Anna, _cooling_active will be corrected in the next if-construc
982985
if self._cooling_present:
983-
self._cooling_active = True
986+
self._cooling_active = True
984987

985988
# Finally, remove c_heating_state from the output
986989
data.pop("c_heating_state")

0 commit comments

Comments
 (0)