1
0
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:
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
@@ -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)