From 7ce9b5910a198607f1f3dec5b81f263523e33891 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Apr 2022 23:28:32 +0200 Subject: [PATCH] Deprecate SUPPORT_* constants in alarm_control_panel (#69475) --- pylint/plugins/hass_imports.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pylint/plugins/hass_imports.py b/pylint/plugins/hass_imports.py index 4db5620ae0f..5b044866bfc 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -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",