Skip to content

Commit

Permalink
Merge pull request #276 from erdnaxela02/master
Browse files Browse the repository at this point in the history
Update deprecated typing
  • Loading branch information
Snuffy2 authored May 11, 2024
2 parents faa5b9c + e14836a commit dbe26f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/places/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
EventStateChangedData,
async_track_state_change_event,
)
from homeassistant.helpers.typing import EventType
from homeassistant.core import Event
from homeassistant.util import Throttle, slugify
from homeassistant.util.location import distance
from urllib3.exceptions import NewConnectionError
Expand Down Expand Up @@ -579,7 +579,7 @@ def is_devicetracker_set(self):

@Throttle(MIN_THROTTLE_INTERVAL)
@core.callback
def async_tsc_update(self, event: EventType[EventStateChangedData]):
def async_tsc_update(self, event: Event[EventStateChangedData]):
"""Call the do_update function based on the TSC (track state change) event"""
# _LOGGER.debug(f"({self.get_attr(CONF_NAME)}) [TSC Update] event: {event}")
new_state = event.data["new_state"]
Expand Down

0 comments on commit dbe26f4

Please sign in to comment.