From d614ccd1616d90e256e5c1054bc043ebd22d5f5b Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Apr 2022 09:42:36 +0200 Subject: [PATCH] Deprecate SUPPORT_* constants in remote (#69515) --- 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 0e467fd777c..7ec51a69dd7 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -49,6 +49,12 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = { constant=re.compile(r"^DEVICE_CLASS_(\w*)$"), ), ], + "homeassistant.components.remote": [ + ObsoleteImportMatch( + reason="replaced by RemoteEntityFeature enum", + constant=re.compile(r"^SUPPORT_(\w*)$"), + ), + ], "homeassistant.components.sensor": [ ObsoleteImportMatch( reason="replaced by SensorDeviceClass enum",