Include deprecated constants in wildcard imports (#107114)

This commit is contained in:
Erik Montnemery
2024-01-05 13:00:33 +01:00
committed by Franck Nijhof
parent a7aa5c0e52
commit b8576b8091
52 changed files with 438 additions and 137 deletions
@@ -14,6 +14,7 @@ from tests.common import (
MockConfigEntry,
MockModule,
MockPlatform,
help_test_all,
import_and_test_deprecated_constant_enum,
mock_config_flow,
mock_integration,
@@ -197,6 +198,11 @@ async def test_entity_category_config_raises_error(
)
def test_all() -> None:
"""Test module.__all__ is correctly set."""
help_test_all(binary_sensor)
@pytest.mark.parametrize(
"device_class",
list(binary_sensor.BinarySensorDeviceClass),