Remove deprecated binary sensor constants (#131793)

This commit is contained in:
Robert Resch
2024-11-28 11:08:18 +01:00
committed by GitHub
parent fb152c7d22
commit b28f352902
2 changed files with 0 additions and 123 deletions

View File

@@ -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"
)