From 9bb10aa769323c17473d0dd69f523e505760d976 Mon Sep 17 00:00:00 2001 From: Jorim Tielemans Date: Fri, 1 Nov 2024 15:03:52 +0100 Subject: [PATCH] Fix Config import (#55) ConfigType to be used instead --- custom_components/noaa_space_weather/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/noaa_space_weather/__init__.py b/custom_components/noaa_space_weather/__init__.py index d3e0318..4be3128 100644 --- a/custom_components/noaa_space_weather/__init__.py +++ b/custom_components/noaa_space_weather/__init__.py @@ -10,11 +10,11 @@ from datetime import timedelta from homeassistant.config_entries import ConfigEntry -from homeassistant.core import Config from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers.aiohttp_client import async_get_clientsession +from homeassistant.helpers.typing import ConfigType from homeassistant.helpers.update_coordinator import DataUpdateCoordinator from homeassistant.helpers.update_coordinator import UpdateFailed @@ -30,7 +30,7 @@ PLATFORM_SCHEMA = cv.platform_only_config_schema(DOMAIN) -async def async_setup(hass: HomeAssistant, config: Config): +async def async_setup(hass: HomeAssistant, config: ConfigType): """Set up this integration using YAML is not supported.""" return True