Skip to content

Commit b4f69c7

Browse files
committed
Add missing import
1 parent 8d54a29 commit b4f69c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugwise/data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
from plugwise.helper import SmileHelper
2020
from plugwise.util import remove_empty_platform_dicts
2121

22+
from packaging import version
23+
2224

2325
class SmileData(SmileHelper):
2426
"""The Plugwise Smile main class."""
@@ -164,7 +166,7 @@ def _get_location_data(self, loc_id: str) -> GwEntityData:
164166
if str(ctrl_state) in ("cooling", "heating", "preheating"):
165167
data["control_state"] = str(ctrl_state)
166168
self._count += 1
167-
elif self.smile_version > Version.parse("3.6.0"):
169+
elif self.smile_version > version.parse("3.6.0"):
168170
data["control_state"] = "idle"
169171
self._count += 1
170172

0 commit comments

Comments
 (0)