Deprecate LightEntityFeature light constants (#69301)

This commit is contained in:
epenet 2022-04-30 16:42:22 +02:00 committed by GitHub
parent 72bc4c5ee9
commit 802c4c0d42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,6 +120,10 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
reason="replaced by ColorMode enum",
constant=re.compile(r"^COLOR_MODE_(\w*)$"),
),
ObsoleteImportMatch(
reason="replaced by LightEntityFeature enum",
constant=re.compile("^SUPPORT_(EFFECT|FLASH|TRANSITION)$"),
),
],
"homeassistant.components.media_player": [
ObsoleteImportMatch(