mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 04:20:17 +00:00
Remove deprecated binary sensor constants (#131793)
This commit is contained in:
@@ -17,8 +17,6 @@ from tests.common import (
|
||||
MockConfigEntry,
|
||||
MockModule,
|
||||
MockPlatform,
|
||||
help_test_all,
|
||||
import_and_test_deprecated_constant_enum,
|
||||
mock_config_flow,
|
||||
mock_integration,
|
||||
mock_platform,
|
||||
@@ -198,22 +196,3 @@ async def test_entity_category_config_raises_error(
|
||||
"Entity binary_sensor.test2 cannot be added as the entity category is set to config"
|
||||
in caplog.text
|
||||
)
|
||||
|
||||
|
||||
def test_all() -> None:
|
||||
"""Test module.__all__ is correctly set."""
|
||||
help_test_all(binary_sensor)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"device_class",
|
||||
list(binary_sensor.BinarySensorDeviceClass),
|
||||
)
|
||||
def test_deprecated_constant_device_class(
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
device_class: binary_sensor.BinarySensorDeviceClass,
|
||||
) -> None:
|
||||
"""Test deprecated binary sensor device classes."""
|
||||
import_and_test_deprecated_constant_enum(
|
||||
caplog, binary_sensor, device_class, "DEVICE_CLASS_", "2025.1"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user