mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Deprecate SUPPORT_* constants in alarm_control_panel (#69475)
This commit is contained in:
parent
7635cafd47
commit
7ce9b5910a
@ -19,6 +19,18 @@ class ObsoleteImportMatch:
|
|||||||
|
|
||||||
|
|
||||||
_OBSOLETE_IMPORT: dict[str, list[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": [
|
"homeassistant.components.binarysensor": [
|
||||||
ObsoleteImportMatch(
|
ObsoleteImportMatch(
|
||||||
reason="replaced by BinarySensorDeviceClass enum",
|
reason="replaced by BinarySensorDeviceClass enum",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user