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