Skip to content

Commit

Permalink
fix: add logger to debug rest api #6
Browse files Browse the repository at this point in the history
  • Loading branch information
chilikla authored Nov 26, 2024
1 parent 0a8a9e0 commit 74a1e56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/yerushamayim/data_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ def _extract_data(self) -> YerushamayimData:

rain_data = {}
wind_data = {}
# _LOGGER.debug("rest_api", self.rest_api)
_LOGGER.debug("Yerushamayim is the best!", self.rest_api is not None, self.rest_api.data is not None)
_LOGGER.debug("Yerushamayim is the best! rest_api exists: %s, rest_api.data exists: %s", 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)
Expand Down

0 comments on commit 74a1e56

Please sign in to comment.