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