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 8d54a29 commit b4f69c7Copy full SHA for b4f69c7
plugwise/data.py
@@ -19,6 +19,8 @@
19
from plugwise.helper import SmileHelper
20
from plugwise.util import remove_empty_platform_dicts
21
22
+from packaging import version
23
+
24
25
class SmileData(SmileHelper):
26
"""The Plugwise Smile main class."""
@@ -164,7 +166,7 @@ def _get_location_data(self, loc_id: str) -> GwEntityData:
164
166
if str(ctrl_state) in ("cooling", "heating", "preheating"):
165
167
data["control_state"] = str(ctrl_state)
168
self._count += 1
- elif self.smile_version > Version.parse("3.6.0"):
169
+ elif self.smile_version > version.parse("3.6.0"):
170
data["control_state"] = "idle"
171
172
0 commit comments