Skip to content

Commit

Permalink
Ignore alpha versions for heishamon update
Browse files Browse the repository at this point in the history
Fix #201
  • Loading branch information
kamaradclimber committed Apr 27, 2024
1 parent 0ac5769 commit 81af13d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/aquarea/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ def message_received(message):
field_value = json.loads(message.payload).get("version", None)
if field_value:
self.stats_firmware_contain_version = True
self._attr_installed_version = field_value
if field_value.startswith("alpha"):
# otherwise alpha are always considered late
self._attr_installed_version = None
else:
self._attr_installed_version = field_value
else:
self.stats_firmware_contain_version = False
# we only write value when we know for sure how to get version
Expand Down

0 comments on commit 81af13d

Please sign in to comment.