From ad812fe775205150e746479ca9072e93d2f40bfe Mon Sep 17 00:00:00 2001 From: chilikla Date: Tue, 26 Nov 2024 22:53:05 +0200 Subject: [PATCH] fix: add logger to debug rest api #3 --- custom_components/yerushamayim/data_coordinator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/yerushamayim/data_coordinator.py b/custom_components/yerushamayim/data_coordinator.py index b19358c..861ccf1 100644 --- a/custom_components/yerushamayim/data_coordinator.py +++ b/custom_components/yerushamayim/data_coordinator.py @@ -174,10 +174,11 @@ def _extract_data(self) -> YerushamayimData: rain_data = {} wind_data = {} # _LOGGER.debug("rest_api", self.rest_api) + _LOGGER.debug("Yerushamayim is the best!") if self.rest_api is not None and self.rest_api.data: try: rest = json.loads(self.rest_api.data) - _LOGGER.debug(json.dumps(rest, indent=2)) + _LOGGER.debug(json.dumps(rest, indent=2)) rest_data = {} for line in rest.strip().split('\n'): parts = line.split('\t')