mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
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>
This commit is contained in:
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…
x
Reference in New Issue
Block a user