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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user