From 98f12da3c725ba5858955cd6b8549d8a84be7cd1 Mon Sep 17 00:00:00 2001 From: Jorim Tielemans Date: Thu, 31 Oct 2024 11:21:02 +0100 Subject: [PATCH] Fix Config import ConfigType to be used instead --- custom_components/better_thermostat/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/better_thermostat/__init__.py b/custom_components/better_thermostat/__init__.py index 8d199824..6584d5a6 100644 --- a/custom_components/better_thermostat/__init__.py +++ b/custom_components/better_thermostat/__init__.py @@ -3,8 +3,9 @@ import logging from asyncio import Lock from homeassistant.const import Platform -from homeassistant.core import HomeAssistant, Config +from homeassistant.core import HomeAssistant from homeassistant.config_entries import ConfigEntry +from homeassistant.helpers.typing import ConfigType import voluptuous as vol from .utils.const import ( @@ -24,7 +25,7 @@ config_entry_update_listener_lock = Lock() -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.""" hass.data[DOMAIN] = {} return True