From e1c647015ad2709441fd391a54c5d01cdc7aeab5 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 1 Nov 2024 10:38:58 +0100 Subject: [PATCH] Backwards compatible core config move --- custom_components/dwd_weather/__init__.py | 4 ++-- hacs.json | 2 +- 2 files changed, 3 insertions(+), 3 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/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"