Skip to content

Commit 5a8aade

Browse files
committed
Fix order, remove unused import
1 parent f448626 commit 5a8aade

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugwise/smile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"""
44
from __future__ import annotations
55

6-
from typing import Any
7-
86
import aiohttp
97
from defusedxml import ElementTree as etree
108

@@ -85,11 +83,11 @@ def update_for_cooling(self, devices: dict[str, DeviceData]) -> None:
8583
"setpoint_low": min_setpoint,
8684
"setpoint_high": thermostat["setpoint"],
8785
}
86+
sensors.pop("setpoint")
87+
sensors.update(temp_dict)
8888
thermostat.pop("setpoint")
8989
temp_dict.update(thermostat)
9090
device["thermostat"] = temp_dict
91-
sensors.pop("setpoint")
92-
sensors.update(temp_dict)
9391

9492
# For Adam + on/off cooling, modify heating_state and cooling_state
9593
# based on provided info by Plugwise

0 commit comments

Comments
 (0)