From 15348965f311d07ec5f374c37f41eea9be596b28 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Apr 2022 23:23:29 +0200 Subject: [PATCH] Deprecate SUPPORT_* constants in fan (#69514) --- 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 cf8e4bba011..d3d5e0b4a89 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -31,6 +31,12 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = { constant=re.compile(r"^DEVICE_CLASS_(\w*)$"), ), ], + "homeassistant.components.fan": [ + ObsoleteImportMatch( + reason="replaced by FanEntityFeature enum", + constant=re.compile(r"^SUPPORT_(\w*)$"), + ), + ], "homeassistant.components.humidifier": [ ObsoleteImportMatch( reason="replaced by HumidifierDeviceClass enum",