1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +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:
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

@@ -696,10 +696,10 @@ class Config:
It will be removed in Home Assistant 2025.6.
"""
report_usage(
"set the time zone using set_time_zone instead of async_set_time_zone"
" which will stop working in Home Assistant 2025.6",
"sets the time zone using set_time_zone instead of async_set_time_zone",
core_integration_behavior=ReportBehavior.ERROR,
custom_integration_behavior=ReportBehavior.ERROR,
breaks_in_ha_version="2025.6",
)
if time_zone := dt_util.get_time_zone(time_zone_str):
self.time_zone = time_zone_str