Detected code that calls
async_track_state_change
instead ofasync_track_state_change_event
which is deprecated and will be removed in Home Assistant 2025.5.
This message also appears when using the non-async track_state_change
call. It would be easier to fix if there were a non-async version of the async_track_state_change_event
call. (One named track_state_change_event
does not exist, unlike most of the other calls.)
This feature request would be a single line in homeassistant/helpers/event.py
:
track_state_change_event = threaded_listener_factory(async_track_state_change_event)