1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-17 23:53:49 +01: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

@@ -1075,9 +1075,8 @@ async def test_set_time_zone_deprecated(hass: HomeAssistant) -> None:
with pytest.raises(
RuntimeError,
match=re.escape(
"Detected code that set the time zone using set_time_zone instead of "
"async_set_time_zone which will stop working in Home Assistant 2025.6. "
"Please report this issue",
"Detected code that sets the time zone using set_time_zone instead of "
"async_set_time_zone. Please report this issue"
),
):
await hass.config.set_time_zone("America/New_York")