Skip to content

Commit

Permalink
Fix Config import
Browse files Browse the repository at this point in the history
ConfigType to be used instead
  • Loading branch information
tjorim authored Oct 30, 2024
1 parent dfe0f76 commit 2bb8a37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/openevse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
EVENT_HOMEASSISTANT_STARTED,
)
from homeassistant.core import (
Config,
CoreState,
Event,
EventStateChangedData,
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2bb8a37

Please sign in to comment.