Skip to content

Commit

Permalink
v2024.8.1-beta-7 fixing bug in last data entry retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenterheerdt committed Aug 14, 2024
1 parent f3d0ed8 commit b765c93
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion custom_components/smart_irrigation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/smart_irrigation/const.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Store constants."""

VERSION = "v2024.8.1-beta-6"
VERSION = "v2024.8.1-beta-7"
NAME = "Smart Irrigation"
MANUFACTURER = "@jeroenterheerdt"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11389,7 +11389,7 @@
.narrow=${this.narrow}
></ha-menu-button>
<div class="main-title">${ji("title", this.hass.language)}</div>
<div class="version">${"v2024.8.1-beta-6"}</div>
<div class="version">${"v2024.8.1-beta-7"}</div>
</div>
<ha-tabs
Expand Down
2 changes: 1 addition & 1 deletion custom_components/smart_irrigation/frontend/src/const.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = "v2024.8.1-beta-6";
export const VERSION = "v2024.8.1-beta-7";
export const REPO = "https://github.com/jeroenterheerdt/HASmartIrrigation;";
export const ISSUES_URL = REPO + "/issues";

Expand Down
2 changes: 1 addition & 1 deletion custom_components/smart_irrigation/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_push",
"issue_tracker": "https://github.com/jeroenterheerdt/HASmartIrrigation/issues",
"requirements": [],
"version": "v2024.8.1-beta-6"
"version": "v2024.8.1-beta-7"
}

0 comments on commit b765c93

Please sign in to comment.