Skip to content

Commit cc88028

Browse files
committed
Fix None values in update_data
1 parent 1c89627 commit cc88028

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

custom_components/eurotronic_cometblue/coordinator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ async def _async_update_data(self) -> dict[str, bytes]:
143143

144144
# If one value was not retrieved correctly, keep the old value
145145
data = {
146-
"battery": battery or self.data.get("battery"),
147-
"holiday": holiday or self.data.get("holiday"),
146+
"battery": battery if battery is not None else self.data.get("battery"),
147+
"holiday": holiday if holiday is not None else self.data.get("holiday", {}),
148148
**{
149149
k: retrieved_temperatures.get(k) or self.data.get(k)
150150
for k in CONF_ALL_TEMPERATURES

custom_components/eurotronic_cometblue/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"requirements": [
1818
"git+https://github.com/rikroe/eurotronic-cometblue.git@ha-component#eurotronic-cometblue==1.0"
1919
],
20-
"version": "20241113.1"
20+
"version": "20241114.1"
2121
}

0 commit comments

Comments
 (0)