From 2bb8a3729a23f227be1b51910392907652ffac17 Mon Sep 17 00:00:00 2001 From: Jorim Tielemans Date: Wed, 30 Oct 2024 21:33:26 +0100 Subject: [PATCH] Fix Config import ConfigType to be used instead --- custom_components/openevse/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/openevse/__init__.py b/custom_components/openevse/__init__.py index 11d309e..e438402 100644 --- a/custom_components/openevse/__init__.py +++ b/custom_components/openevse/__init__.py @@ -15,7 +15,6 @@ EVENT_HOMEASSISTANT_STARTED, ) from homeassistant.core import ( - Config, CoreState, Event, EventStateChangedData, @@ -25,6 +24,7 @@ from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers import device_registry as dr from homeassistant.helpers.event import async_track_state_change_event +from homeassistant.helpers.typing import ConfigType from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed from openevsehttp.__main__ import OpenEVSE from openevsehttp.exceptions import MissingSerial @@ -125,7 +125,7 @@ async def homeassistant_started_listener( async def async_setup( # pylint: disable-next=unused-argument - hass: HomeAssistant, config: Config + hass: HomeAssistant, config: ConfigType ) -> bool: """Disallow configuration via YAML.""" return True