Skip to content

Commit

Permalink
Dev blog thru 20240501
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbruckner committed Nov 26, 2024
1 parent b855959 commit 2fa70ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/composite/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions custom_components/composite/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"])
Expand Down

0 comments on commit 2fa70ef

Please sign in to comment.