From b765c935e601d4ff30609849f0105f76652b5729 Mon Sep 17 00:00:00 2001 From: Jeroen ter Heerdt Date: Wed, 14 Aug 2024 22:51:56 +0000 Subject: [PATCH] v2024.8.1-beta-7 fixing bug in last data entry retrieval --- custom_components/smart_irrigation/__init__.py | 5 ++++- custom_components/smart_irrigation/const.py | 2 +- .../smart_irrigation/frontend/dist/smart-irrigation.js | 2 +- custom_components/smart_irrigation/frontend/src/const.ts | 2 +- custom_components/smart_irrigation/manifest.json | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/custom_components/smart_irrigation/__init__.py b/custom_components/smart_irrigation/__init__.py index e81fdc2..c349c52 100644 --- a/custom_components/smart_irrigation/__init__.py +++ b/custom_components/smart_irrigation/__init__.py @@ -620,12 +620,15 @@ def clear_weatherdata_for_mapping(self, mapping): _LOGGER.debug( f"[clear_weatherdata_for_mapping] finding last entry for each key in the sensor group." ) + _LOGGER.debug( + f"[clear_weatherdata_for_mapping] keys in sensor group {mapping}: {mapping.get(const.MAPPING_MAPPINGS)}" + ) if mapping.get(const.MAPPING_DATA): for key in mapping.get(const.MAPPING_MAPPINGS): for e in reversed(mapping.get(const.MAPPING_DATA)): if key in e: data_last_entry[key] = e[key] - break + continue # continue instead of break to continue to the next key _LOGGER.debug( f"[clear_weatherdata_for_mapping] last entry for each key in the sensor group: {data_last_entry}" ) diff --git a/custom_components/smart_irrigation/const.py b/custom_components/smart_irrigation/const.py index 5327aeb..288902c 100644 --- a/custom_components/smart_irrigation/const.py +++ b/custom_components/smart_irrigation/const.py @@ -1,6 +1,6 @@ """Store constants.""" -VERSION = "v2024.8.1-beta-6" +VERSION = "v2024.8.1-beta-7" NAME = "Smart Irrigation" MANUFACTURER = "@jeroenterheerdt" diff --git a/custom_components/smart_irrigation/frontend/dist/smart-irrigation.js b/custom_components/smart_irrigation/frontend/dist/smart-irrigation.js index f80dc1b..b208ea7 100644 --- a/custom_components/smart_irrigation/frontend/dist/smart-irrigation.js +++ b/custom_components/smart_irrigation/frontend/dist/smart-irrigation.js @@ -11389,7 +11389,7 @@ .narrow=${this.narrow} >
${ji("title", this.hass.language)}
-
${"v2024.8.1-beta-6"}
+
${"v2024.8.1-beta-7"}