1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Allow importing homeassistant.core.Config until 2025.11 (#129537)

This commit is contained in:
Erik Montnemery
2024-10-30 22:56:59 +01:00
committed by GitHub
parent af144e1b77
commit 1c6ad2fa66
2 changed files with 21 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ from homeassistant.core import (
callback,
get_release_channel,
)
from homeassistant.core_config import Config
from homeassistant.exceptions import (
HomeAssistantError,
InvalidEntityFormatError,
@@ -66,6 +67,7 @@ from .common import (
async_capture_events,
async_mock_service,
help_test_all,
import_and_test_deprecated_alias,
import_and_test_deprecated_constant_enum,
)
@@ -2994,6 +2996,11 @@ def test_deprecated_constants(
import_and_test_deprecated_constant_enum(caplog, ha, enum, "SOURCE_", "2025.1")
def test_deprecated_config(caplog: pytest.LogCaptureFixture) -> None:
"""Test deprecated Config class."""
import_and_test_deprecated_alias(caplog, ha, "Config", Config, "2025.11")
def test_one_time_listener_repr(hass: HomeAssistant) -> None:
"""Test one time listener repr."""