Include deprecated constants in wildcard imports (#107114)

This commit is contained in:
Erik Montnemery
2024-01-05 11:46:45 +01:00
committed by GitHub
parent c063bf403a
commit c805ea7b4f
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),