From 3c57adefdb5e501df5bb7e210a39e92b5e7e3830 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Apr 2022 14:14:38 +0200 Subject: [PATCH] Deprecate SUPPORT_* constants in lock (#69513) --- pylint/plugins/hass_imports.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pylint/plugins/hass_imports.py b/pylint/plugins/hass_imports.py index 7ec51a69dd7..abf8aa852b0 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -43,6 +43,12 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = { constant=re.compile(r"^DEVICE_CLASS_(\w*)$"), ), ], + "homeassistant.components.lock": [ + ObsoleteImportMatch( + reason="replaced by LockEntityFeature enum", + constant=re.compile(r"^SUPPORT_(\w*)$"), + ), + ], "homeassistant.components.media_player": [ ObsoleteImportMatch( reason="replaced by MediaPlayerDeviceClass enum",