Skip to content

Commit b5546b4

Browse files
Clean up homeassistant.const from deprecations (home-assistant#155985)
1 parent dca9389 commit b5546b4

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

homeassistant/const.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,9 @@
33
from __future__ import annotations
44

55
from enum import StrEnum
6-
from functools import partial
76
from typing import TYPE_CHECKING, Final
87

98
from .generated.entity_platforms import EntityPlatforms
10-
from .helpers.deprecation import (
11-
DeprecatedConstantEnum,
12-
all_with_deprecated_constants,
13-
check_if_deprecated_constant,
14-
dir_with_deprecated_constants,
15-
)
169
from .util.event_type import EventType
1710
from .util.hass_dict import HassKey
1811
from .util.signal_type import SignalType
@@ -1000,10 +993,3 @@ class EntityCategory(StrEnum):
1000993
# This is not a hard limit, but caches and other
1001994
# data structures will be pre-allocated to this size
1002995
MAX_EXPECTED_ENTITY_IDS: Final = 16384
1003-
1004-
# These can be removed if no deprecated constant are in this module anymore
1005-
__getattr__ = partial(check_if_deprecated_constant, module_globals=globals())
1006-
__dir__ = partial(
1007-
dir_with_deprecated_constants, module_globals_keys=[*globals().keys()]
1008-
)
1009-
__all__ = all_with_deprecated_constants(globals())

tests/test_const.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)