From fa13a243d495090df283ada135a4ab83407d0eaa Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 8 Apr 2022 15:38:57 +0200 Subject: [PATCH] Deprecate SUPPORT_* constants in siren (#69648) --- 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 51df990aa51..7a21e1652e0 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -129,6 +129,18 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = { constant=re.compile(r"^STATE_CLASS_(\w*)$"), ), ], + "homeassistant.components.siren": [ + ObsoleteImportMatch( + reason="replaced by SirenEntityFeature enum", + constant=re.compile(r"^SUPPORT_(\w*)$"), + ), + ], + "homeassistant.components.siren.const": [ + ObsoleteImportMatch( + reason="replaced by SirenEntityFeature enum", + constant=re.compile(r"^SUPPORT_(\w*)$"), + ), + ], "homeassistant.components.switch": [ ObsoleteImportMatch( reason="replaced by SwitchDeviceClass enum",