mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 10:29:27 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user