From b369c2f54c4d68c1183b6b2944cd09adf871ad07 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 9 Sep 2022 11:27:16 +0200 Subject: [PATCH] Deprecate SUPPORT_* constants for color_mode (#69269) * Deprecate SUPPORT_* constants for color_mode * Simplify Co-authored-by: Erik Montnemery Co-authored-by: Erik Montnemery Co-authored-by: Franck Nijhof --- 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 a45e2c91996..0a0d9c8c7b1 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -157,6 +157,10 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = { reason="replaced by ColorMode enum", constant=re.compile(r"^COLOR_MODE_(\w*)$"), ), + ObsoleteImportMatch( + reason="replaced by color modes", + constant=re.compile("^SUPPORT_(BRIGHTNESS|COLOR_TEMP|COLOR)$"), + ), ObsoleteImportMatch( reason="replaced by LightEntityFeature enum", constant=re.compile("^SUPPORT_(EFFECT|FLASH|TRANSITION)$"),