Skip to content

Commit 31b4aa5

Browse files
committed
Fix up guarding with smile_version
1 parent fda3773 commit 31b4aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ def _control_state(self, data: GwEntityData, loc_id: str) -> str | bool:
786786

787787
# Handle missing control_state in regulation_mode off for firmware >= 3.2.0 (issue #776)
788788
# In newer firmware versions, default to "off" when control_state is not present
789-
if self.smile_version is not None:
789+
if self.smile_version != version.Version("0.0.0"):
790790
if self.smile_version >= version.parse("3.2.0"):
791791
return "off"
792792

0 commit comments

Comments
 (0)