From 0bfa2e05c5963a6a3ea24987c913b81d010a384f Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 2 Nov 2024 06:51:34 +0100 Subject: [PATCH] Make core config move backwards compatible (#167) * Backwards compatible core config move * Update const.py --- custom_components/dwd_weather/__init__.py | 4 ++-- custom_components/dwd_weather/const.py | 2 +- hacs.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/dwd_weather/__init__.py b/custom_components/dwd_weather/__init__.py index fa8fb7b..6b702b6 100644 --- a/custom_components/dwd_weather/__init__.py +++ b/custom_components/dwd_weather/__init__.py @@ -5,10 +5,10 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant -from homeassistant.core_config import Config from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers.update_coordinator import DataUpdateCoordinator from homeassistant.helpers.entity_registry import async_migrate_entries +from homeassistant.helpers.typing import ConfigType from homeassistant.core import callback from simple_dwd_weatherforecast import dwdforecast @@ -47,7 +47,7 @@ PLATFORMS = ["weather", "sensor"] -async def async_setup(hass: HomeAssistant, config: Config) -> bool: +async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: """Set up configured DWD Weather.""" return True diff --git a/custom_components/dwd_weather/const.py b/custom_components/dwd_weather/const.py index d10bca7..078d484 100644 --- a/custom_components/dwd_weather/const.py +++ b/custom_components/dwd_weather/const.py @@ -15,7 +15,7 @@ Platform.WEATHER, ] INTEGRATION_VERSION = "2.1.22" -MIN_REQUIRED_HA_VERSION = "2024.11" +MIN_REQUIRED_HA_VERSION = "2024.10" ATTR_LATEST_UPDATE = "latest_update_utc" ATTR_REPORT_ISSUE_TIME = "report_time_utc" diff --git a/hacs.json b/hacs.json index c2fb0d2..9ed126b 100644 --- a/hacs.json +++ b/hacs.json @@ -1,6 +1,6 @@ { "name": "Deutscher Wetterdienst", - "homeassistant": "2024.11.0b0", + "homeassistant": "2024.10", "domains": [ "weather", "sensor"