mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 17:49:37 +01:00
Include deprecated constants in wildcard imports (#107114)
This commit is contained in:
@@ -4,6 +4,6 @@ from types import ModuleType
|
||||
from typing import Any
|
||||
|
||||
|
||||
def import_deprecated_costant(module: ModuleType, constant_name: str) -> Any:
|
||||
def import_deprecated_constant(module: ModuleType, constant_name: str) -> Any:
|
||||
"""Import and return deprecated constant."""
|
||||
return getattr(module, constant_name)
|
||||
|
||||
Reference in New Issue
Block a user