diff --git a/custom_components/weatherflow_forecast/__init__.py b/custom_components/weatherflow_forecast/__init__.py index 9f3146c..661a132 100644 --- a/custom_components/weatherflow_forecast/__init__.py +++ b/custom_components/weatherflow_forecast/__init__.py @@ -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