From 04b6e12ba5463fa1cdf4e4ce71b12a5984f7a9e2 Mon Sep 17 00:00:00 2001 From: Jorim Tielemans Date: Wed, 30 Oct 2024 21:33:27 +0100 Subject: [PATCH] Fix Config import ConfigType to be used instead --- custom_components/traeger/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/traeger/__init__.py b/custom_components/traeger/__init__.py index 8ca1103..3e0abda 100644 --- a/custom_components/traeger/__init__.py +++ b/custom_components/traeger/__init__.py @@ -10,8 +10,9 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.const import (EVENT_HOMEASSISTANT_STOP) -from homeassistant.core import Config, Event, HomeAssistant +from homeassistant.core import Event, HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession +from homeassistant.helpers.typing import ConfigType from .const import (CONF_PASSWORD, CONF_USERNAME, DOMAIN, PLATFORMS, STARTUP_MESSAGE) @@ -22,7 +23,7 @@ _LOGGER: logging.Logger = logging.getLogger(__package__) -async def async_setup(hass: HomeAssistant, config: Config): # pylint: disable=unused-argument +async def async_setup(hass: HomeAssistant, config: ConfigType): # pylint: disable=unused-argument """Set up this integration using YAML is not supported.""" return True