diff --git a/requirements.txt b/requirements.txt index eca44c7..c247417 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -aiohttp==3.10.8 +aiohttp==3.10.10 async-timeout==4.0.3 -homeassistant==2024.10.4 +homeassistant==2024.11.1 voluptuous==0.15.2 svgwrite==1.4.3 aiofile==3.9.0 \ No newline at end of file diff --git a/requirements_tests.txt b/requirements_tests.txt index 40a10c0..56e4d83 100644 --- a/requirements_tests.txt +++ b/requirements_tests.txt @@ -1,5 +1,5 @@ -homeassistant==2024.10.4 -pytest_homeassistant_custom_component==0.13.175 +homeassistant==2024.11.1 +pytest_homeassistant_custom_component==0.13.182 pytest freezegun isort \ No newline at end of file diff --git a/tests/test_weather.py b/tests/test_weather.py index 705efee..0b68a32 100644 --- a/tests/test_weather.py +++ b/tests/test_weather.py @@ -5,6 +5,7 @@ from freezegun import freeze_time from homeassistant.components.weather import Forecast +from homeassistant.config_entries import ConfigEntryState from homeassistant.core import HomeAssistant from pytest_homeassistant_custom_component.common import MockConfigEntry @@ -28,7 +29,7 @@ async def test_weather_nl( hass.config.config_dir = os.getcwd() coordinator = IrmKmiCoordinator(hass, mock_config_entry) - await coordinator.async_config_entry_first_refresh() + await coordinator.async_refresh() weather = IrmKmiWeather(coordinator, mock_config_entry) result = await weather.async_forecast_daily() @@ -56,7 +57,7 @@ async def test_weather_higher_temp_at_night( hass.config.config_dir = os.getcwd() coordinator = IrmKmiCoordinator(hass, mock_config_entry) - await coordinator.async_config_entry_first_refresh() + await coordinator.async_refresh() weather = IrmKmiWeather(coordinator, mock_config_entry) result: List[Forecast] = await weather.async_forecast_daily() @@ -86,7 +87,7 @@ async def test_forecast_attribute_same_as_service_call( hass.config.config_dir = os.getcwd() coordinator = IrmKmiCoordinator(hass, mock_config_entry_with_deprecated) - await coordinator.async_config_entry_first_refresh() + await coordinator.async_refresh() weather = IrmKmiWeather(coordinator, mock_config_entry_with_deprecated)