Home Assistant Unofficial Reference 2024.12.1
homeassistant.backports.enum Namespace Reference

Variables

 __all__ = all_with_deprecated_constants(globals())
 
 __dir__
 
 __getattr__ = partial(check_if_deprecated_constant, module_globals=globals())
 
 _DEPRECATED_StrEnum = DeprecatedAlias(_StrEnum, "enum.StrEnum", "2025.5")
 

Detailed Description

Enum backports from standard lib.

This file contained the backport of the StrEnum of Python 3.11.

Since we have dropped support for Python 3.10, we can remove this backport.
This file is kept for now to avoid breaking custom components that might
import it.

Variable Documentation

◆ __all__

homeassistant.backports.enum.__all__ = all_with_deprecated_constants(globals())
private

Definition at line 29 of file enum.py.

◆ __dir__

homeassistant.backports.enum.__dir__
private
Initial value:
1 = partial(
2  dir_with_deprecated_constants, module_globals_keys=[*globals().keys()]
3 )

Definition at line 26 of file enum.py.

◆ __getattr__

homeassistant.backports.enum.__getattr__ = partial(check_if_deprecated_constant, module_globals=globals())
private

Definition at line 25 of file enum.py.

◆ _DEPRECATED_StrEnum

homeassistant.backports.enum._DEPRECATED_StrEnum = DeprecatedAlias(_StrEnum, "enum.StrEnum", "2025.5")
private

Definition at line 23 of file enum.py.