From 094a3ff0a01fdbd1bfc79f3c748e4eaed79d937e Mon Sep 17 00:00:00 2001 From: chilikla Date: Tue, 26 Nov 2024 23:02:08 +0200 Subject: [PATCH] fix: add logger to debug rest api #5 --- custom_components/yerushamayim/data_coordinator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/yerushamayim/data_coordinator.py b/custom_components/yerushamayim/data_coordinator.py index 8fbcf49..8d0348c 100644 --- a/custom_components/yerushamayim/data_coordinator.py +++ b/custom_components/yerushamayim/data_coordinator.py @@ -174,7 +174,7 @@ def _extract_data(self) -> YerushamayimData: rain_data = {} wind_data = {} # _LOGGER.debug("rest_api", self.rest_api) - _LOGGER.debug("Yerushamayim is the best!") + _LOGGER.debug("Yerushamayim is the best!", self.rest_api is not None, self.rest_api.data is not None) if self.rest_api is not None and self.rest_api.data: try: rest = json.loads(self.rest_api.data)