Skip to content

Commit

Permalink
Deprecate white_value support in template light (#71044)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Apr 29, 2022
1 parent 57d0390 commit 2fb16fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions homeassistant/components/template/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,13 @@
).extend(TEMPLATE_ENTITY_COMMON_SCHEMA_LEGACY.schema),
)

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{vol.Required(CONF_LIGHTS): cv.schema_with_slug_keys(LIGHT_SCHEMA)}
PLATFORM_SCHEMA = vol.All(
# CONF_WHITE_VALUE_* is deprecated, support will be removed in release 2022.9
cv.deprecated(CONF_WHITE_VALUE_ACTION),
cv.deprecated(CONF_WHITE_VALUE_TEMPLATE),
PLATFORM_SCHEMA.extend(
{vol.Required(CONF_LIGHTS): cv.schema_with_slug_keys(LIGHT_SCHEMA)}
),
)


Expand Down

0 comments on commit 2fb16fd

Please sign in to comment.