From c6104ec9a0b566ea72976ee1000dc0312381faa3 Mon Sep 17 00:00:00 2001 From: Adar W <64723382+AdarWa@users.noreply.github.com> Date: Fri, 27 Dec 2024 21:21:38 +0200 Subject: [PATCH] Fix small typo in 2024-04-13-deprecate_async_track_state_change blog post (#2516) --- blog/2024-04-13-deprecate_async_track_state_change.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/2024-04-13-deprecate_async_track_state_change.md b/blog/2024-04-13-deprecate_async_track_state_change.md index d2ecc13725d..70016d333d7 100644 --- a/blog/2024-04-13-deprecate_async_track_state_change.md +++ b/blog/2024-04-13-deprecate_async_track_state_change.md @@ -12,7 +12,7 @@ Example with `async_track_state_change`: ```python from homeassistant.core import State, callback -from homeassistant.helper.event import async_track_state_change +from homeassistant.helpers.event import async_track_state_change @callback def _async_on_change(entity_id: str, old_state: State | None, new_state: State | None) -> None: @@ -26,7 +26,7 @@ Example replacement with `async_track_state_change_event`: ```python from homeassistant.core import Event, EventStateChangedData, callback -from homeassistant.helper.event import async_track_state_change_event +from homeassistant.helpers.event import async_track_state_change_event @callback def _async_on_change(event: Event[EventStateChangedData]) -> None: @@ -37,4 +37,4 @@ def _async_on_change(event: Event[EventStateChangedData]) -> None: unsub = async_track_state_change_event(hass, "sensor.one", _async_on_change) unsub() -``` \ No newline at end of file +```