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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user