diff --git a/custom_components/keymaster/__init__.py b/custom_components/keymaster/__init__.py index e1a6fb20..eedaceb5 100644 --- a/custom_components/keymaster/__init__.py +++ b/custom_components/keymaster/__init__.py @@ -15,13 +15,14 @@ EVENT_HOMEASSISTANT_STARTED, STATE_ON, ) -from homeassistant.core import Config, CoreState, Event, HomeAssistant, ServiceCall +from homeassistant.core import CoreState, Event, HomeAssistant, ServiceCall from homeassistant.helpers.dispatcher import async_dispatcher_send from homeassistant.helpers.entity_registry import ( EntityRegistry, async_get as async_get_entity_registry, ) 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 homeassistant.util import slugify @@ -120,7 +121,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 diff --git a/setup.cfg b/setup.cfg index 9742134a..c2282f42 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [mypy] -python_version = 3.10 +python_version = 3.12 show_error_codes = true ignore_errors = true follow_imports = silent @@ -29,4 +29,4 @@ multi_line_output = 3 include_trailing_comma = True force_grid_wrap = 0 use_parentheses = True -line_length = 88 \ No newline at end of file +line_length = 88