From 6feeece5743d48a7a8c0c233684d4ae9ceae095a Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Apr 2022 23:25:14 +0200 Subject: [PATCH] Deprecate SUPPORT_* constants in climate (#69482) --- pylint/plugins/hass_imports.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pylint/plugins/hass_imports.py b/pylint/plugins/hass_imports.py index d3d5e0b4a89..9c59b4cc010 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -25,6 +25,18 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = { constant=re.compile(r"^DEVICE_CLASS_(\w*)$"), ), ], + "homeassistant.components.climate": [ + ObsoleteImportMatch( + reason="replaced by ClimateEntityFeature enum", + constant=re.compile(r"^SUPPORT_(\w*)$"), + ), + ], + "homeassistant.components.climate.const": [ + ObsoleteImportMatch( + reason="replaced by ClimateEntityFeature enum", + constant=re.compile(r"^SUPPORT_(\w*)$"), + ), + ], "homeassistant.components.cover": [ ObsoleteImportMatch( reason="replaced by CoverDeviceClass enum",