From dee21f890cbfe400eed2d44ad0db6a1aa485f9c3 Mon Sep 17 00:00:00 2001 From: chilikla Date: Sun, 24 Nov 2024 23:00:58 +0200 Subject: [PATCH] fix: rain and wind dicts --- custom_components/yerushamayim/data_coordinator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/yerushamayim/data_coordinator.py b/custom_components/yerushamayim/data_coordinator.py index 62e9003..118e2e7 100644 --- a/custom_components/yerushamayim/data_coordinator.py +++ b/custom_components/yerushamayim/data_coordinator.py @@ -171,6 +171,8 @@ def _extract_data(self) -> YerushamayimData: except Exception as err: _LOGGER.debug("Could not parse coldmeter data: %s", err) + rain_data = {} + wind_data = {} if self.rest_api is not None and self.rest_api.data: try: rest_data = {}