1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Migrate backported StrEnum to built-in StrEnum (#97101)

This commit is contained in:
Franck Nijhof
2023-07-23 23:19:24 +02:00
committed by GitHub
parent 38e3e20f74
commit 30058297cf
64 changed files with 84 additions and 151 deletions

View File

@@ -18,6 +18,12 @@ class ObsoleteImportMatch:
_OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
"homeassistant.backports.enum": [
ObsoleteImportMatch(
reason="We can now use the Python 3.11 provided enum.StrEnum instead",
constant=re.compile(r"^StrEnum$"),
),
],
"homeassistant.components.alarm_control_panel": [
ObsoleteImportMatch(
reason="replaced by AlarmControlPanelEntityFeature enum",