mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Include deprecated constants in wildcard imports (#107114)
This commit is contained in:
@@ -9,6 +9,7 @@ from homeassistant import const
|
||||
from homeassistant.components import sensor
|
||||
|
||||
from tests.common import (
|
||||
help_test_all,
|
||||
import_and_test_deprecated_constant,
|
||||
import_and_test_deprecated_constant_enum,
|
||||
)
|
||||
@@ -23,6 +24,11 @@ def _create_tuples(
|
||||
return result
|
||||
|
||||
|
||||
def test_all() -> None:
|
||||
"""Test module.__all__ is correctly set."""
|
||||
help_test_all(const)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("enum", "constant_prefix"),
|
||||
_create_tuples(const.EntityCategory, "ENTITY_CATEGORY_")
|
||||
|
||||
Reference in New Issue
Block a user