From d3c25bf4507e166ee98d283598c63b26afec64b4 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 13 May 2022 10:40:14 +0200 Subject: [PATCH] Adjust pylint plugin for climate HVACAction (#70760) --- pylint/plugins/hass_imports.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pylint/plugins/hass_imports.py b/pylint/plugins/hass_imports.py index ae9961b49dd..afbd930ec30 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -68,6 +68,10 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = { ), ], "homeassistant.components.climate.const": [ + ObsoleteImportMatch( + reason="replaced by HVACAction enum", + constant=re.compile(r"^CURRENT_HVAC_(\w*)$"), + ), ObsoleteImportMatch( reason="replaced by ClimateEntityFeature enum", constant=re.compile(r"^SUPPORT_(\w*)$"),