From 34da029d48f1c5ac1126186d7015f800514d985c Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 26 Apr 2022 04:20:13 +0200 Subject: [PATCH] Deprecate SUPPORT_* constants in vacuum (#69516) --- 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 ad068162de1..1722710768e 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -165,6 +165,12 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = { constant=re.compile(r"^DEVICE_CLASS_(\w*)$"), ), ], + "homeassistant.components.vacuum": [ + ObsoleteImportMatch( + reason="replaced by VacuumEntityFeature enum", + constant=re.compile(r"^SUPPORT_(\w*)$"), + ), + ], "homeassistant.components.water_heater": [ ObsoleteImportMatch( reason="replaced by WaterHeaterEntityFeature enum",