Use breaks_in_ha_version in report_usage (#131137)

* Use breaks_in_ha_version in report_usage

* Revert behavior change
This commit is contained in:
epenet
2024-11-23 18:58:24 +01:00
committed by GitHub
parent 50013cf5c7
commit c7485b94d5
14 changed files with 55 additions and 70 deletions

View File

@@ -996,15 +996,10 @@ class TrackTemplateResultInfo:
if track_template_.template.hass:
continue
# pylint: disable-next=import-outside-toplevel
from .frame import ReportBehavior, report_usage
report_usage(
(
"calls async_track_template_result with template without hass, "
"which will stop working in HA Core 2025.10"
),
core_behavior=ReportBehavior.LOG,
frame.report_usage(
"calls async_track_template_result with template without hass",
core_behavior=frame.ReportBehavior.LOG,
breaks_in_ha_version="2025.10",
)
track_template_.template.hass = hass