Deprecate SUPPORT_* constants in alarm_control_panel (#69475)
parent
7635cafd47
commit
7ce9b5910a
|
@ -19,6 +19,18 @@ class ObsoleteImportMatch:
|
|||
|
||||
|
||||
_OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
||||
"homeassistant.components.alarm_control_panel": [
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by AlarmControlPanelEntityFeature enum",
|
||||
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
||||
),
|
||||
],
|
||||
"homeassistant.components.alarm_control_panel.const": [
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by AlarmControlPanelEntityFeature enum",
|
||||
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
||||
),
|
||||
],
|
||||
"homeassistant.components.binarysensor": [
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by BinarySensorDeviceClass enum",
|
||||
|
|
Loading…
Reference in New Issue