Deprecate SUPPORT_* constants for color_mode (#69269)
* Deprecate SUPPORT_* constants for color_mode * Simplify Co-authored-by: Erik Montnemery <erik@montnemery.com> Co-authored-by: Erik Montnemery <erik@montnemery.com> Co-authored-by: Franck Nijhof <git@frenck.dev>pull/78140/head
parent
9a4c8f5f0e
commit
b369c2f54c
|
@ -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)$"),
|
||||
|
|
Loading…
Reference in New Issue