diff --git a/custom_components/composite/config_flow.py b/custom_components/composite/config_flow.py index 2dc1b94..ceb790e 100644 --- a/custom_components/composite/config_flow.py +++ b/custom_components/composite/config_flow.py @@ -2,7 +2,7 @@ from __future__ import annotations from abc import abstractmethod -from functools import cached_property +from functools import cached_property # pylint: disable=hass-deprecated-import import logging from pathlib import Path import shutil diff --git a/custom_components/composite/device_tracker.py b/custom_components/composite/device_tracker.py index c53c792..2a8b029 100644 --- a/custom_components/composite/device_tracker.py +++ b/custom_components/composite/device_tracker.py @@ -37,7 +37,7 @@ STATE_UNAVAILABLE, STATE_UNKNOWN, ) -from homeassistant.core import Event, HomeAssistant, State +from homeassistant.core import Event, EventStateChangedData, HomeAssistant, State from homeassistant.helpers import entity_registry as er from homeassistant.helpers.dispatcher import async_dispatcher_send from homeassistant.helpers.entity_platform import AddEntitiesCallback @@ -329,7 +329,7 @@ async def _process_config_options(self) -> None: self._attr_entity_picture = None self._use_entity_picture = False - async def state_listener(event: Event) -> None: + async def state_listener(event: Event[EventStateChangedData]) -> None: """Process input entity state update.""" await self.async_request_call( self._entity_updated(event.data["entity_id"], event.data["new_state"])