Skip to content

Commit

Permalink
Fix up guarding with smile_version
Browse files Browse the repository at this point in the history
  • Loading branch information
bouwew committed Jan 30, 2025
1 parent ebbdf3f commit e886fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugwise/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def _control_state(self, data: GwEntityData, loc_id: str) -> str | bool:

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

Expand Down

0 comments on commit e886fd8

Please sign in to comment.