diff --git a/custom_components/yerushamayim/data_coordinator.py b/custom_components/yerushamayim/data_coordinator.py index 3fe97e0..9b79ade 100644 --- a/custom_components/yerushamayim/data_coordinator.py +++ b/custom_components/yerushamayim/data_coordinator.py @@ -173,11 +173,12 @@ def _extract_data(self) -> YerushamayimData: rain_data = {} wind_data = {} - _LOGGER.debug("rest_api", self.rest_api) + # _LOGGER.debug("rest_api", self.rest_api) if self.rest_api is not None and self.rest_api.data: try: + rest = json.loads(self.rest_api.data) rest_data = {} - for line in self.rest_api.data.strip().split('\n'): + for line in rest.strip().split('\n'): parts = line.split('\t') if len(parts) >= 3: key = parts[1].split(':')[0].strip()