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

Remvove deprecated core constants (#131803)

This commit is contained in:
Robert Resch
2024-11-28 11:06:04 +01:00
committed by GitHub
parent 28ec8272ee
commit be81fd86d3
2 changed files with 0 additions and 26 deletions

View File

@@ -68,7 +68,6 @@ from .common import (
async_mock_service,
help_test_all,
import_and_test_deprecated_alias,
import_and_test_deprecated_constant_enum,
)
PST = dt_util.get_time_zone("America/Los_Angeles")
@@ -2980,22 +2979,6 @@ def test_all() -> None:
help_test_all(ha)
@pytest.mark.parametrize(
("enum"),
[
ha.ConfigSource.DISCOVERED,
ha.ConfigSource.YAML,
ha.ConfigSource.STORAGE,
],
)
def test_deprecated_constants(
caplog: pytest.LogCaptureFixture,
enum: ha.ConfigSource,
) -> None:
"""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")