Skip to content

Commit

Permalink
Added session to init
Browse files Browse the repository at this point in the history
  • Loading branch information
briis committed Sep 18, 2023
1 parent f09e105 commit 42b9f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/weatherflow_forecast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(self, hass: HomeAssistant, config: MappingProxyType[str, Any]) -> N
def initialize_data(self) -> bool:
"""Establish connection to API."""
self._weather_data = WeatherFlow(
self._config[CONF_STATION_ID], self._config[CONF_API_TOKEN])
self._config[CONF_STATION_ID], self._config[CONF_API_TOKEN], session=async_get_clientsession(self.hass))

return True

Expand Down

0 comments on commit 42b9f54

Please sign in to comment.