Remove deprecated core set_time_zone function (#144559)

This commit is contained in:
Robert Resch
2025-05-09 14:40:23 +02:00
committed by GitHub
parent d2bdc85a7b
commit 920d281d45
2 changed files with 0 additions and 34 deletions

View File

@@ -5,7 +5,6 @@ from collections import OrderedDict
import copy
import os
from pathlib import Path
import re
from tempfile import TemporaryDirectory
from typing import Any
from unittest.mock import Mock, PropertyMock, patch
@@ -1072,18 +1071,6 @@ async def test_debug_mode_defaults_to_off(hass: HomeAssistant) -> None:
assert not hass.config.debug
async def test_set_time_zone_deprecated(hass: HomeAssistant) -> None:
"""Test set_time_zone is deprecated."""
with pytest.raises(
RuntimeError,
match=re.escape(
"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")
async def test_core_config_schema_imperial_unit(
hass: HomeAssistant, issue_registry: ir.IssueRegistry
) -> None: