Skip to content

Commit

Permalink
fix: add logger to debug rest api #20
Browse files Browse the repository at this point in the history
  • Loading branch information
chilikla authored Nov 27, 2024
1 parent 15cb0ef commit a39b485
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/yerushamayim/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

from datetime import datetime

_LOGGER = logging.getLogger(__name__)

async def async_setup_platform(
hass: HomeAssistant,
config: ConfigType,
Expand Down Expand Up @@ -129,6 +131,7 @@ async def async_forecast_daily(self) -> list[Forecast] | None:
}

forecasts.append(forecast)
_LOGGER.debug("Yerushamayim forecasts: %s", forecasts)
return forecasts

except Exception:
Expand Down

0 comments on commit a39b485

Please sign in to comment.