Finish migration from report to report_usage (#130412)

This commit is contained in:
epenet
2024-11-15 12:35:50 +01:00
committed by GitHub
parent b57b22f6e3
commit 600f83ddab
4 changed files with 11 additions and 16 deletions

View File

@@ -224,10 +224,10 @@ def async_track_state_change(
Must be run within the event loop.
"""
frame.report(
frame.report_usage(
"calls `async_track_state_change` instead of `async_track_state_change_event`"
" which is deprecated and will be removed in Home Assistant 2025.5",
error_if_core=False,
core_behavior=frame.ReportBehavior.LOG,
)
if from_state is not None: