From 81af13d0a17770f590bfbd1f9ff82b3380fe131a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Seux?= Date: Sat, 27 Apr 2024 17:50:47 +0200 Subject: [PATCH] Ignore alpha versions for heishamon update Fix #201 --- custom_components/aquarea/update.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/custom_components/aquarea/update.py b/custom_components/aquarea/update.py index 8eecf29..b227ccb 100644 --- a/custom_components/aquarea/update.py +++ b/custom_components/aquarea/update.py @@ -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