Deprecate SUPPORT_* constants in alarm_control_panel (#69475)

pull/69864/head
epenet 2022-04-07 23:28:32 +02:00 committed by GitHub
parent 7635cafd47
commit 7ce9b5910a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -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",