Deprecate ios push config (in favor of inline actions) (#61078)

pull/61149/head
Zac West 2021-12-06 23:56:08 -08:00 committed by GitHub
parent a87a6d3072
commit 8ee2ca8a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -150,10 +150,13 @@ ACTION_LIST_SCHEMA = vol.All(cv.ensure_list, [ACTION_SCHEMA])
CONFIG_SCHEMA = vol.Schema(
{
DOMAIN: {
CONF_PUSH: {CONF_PUSH_CATEGORIES: PUSH_CATEGORY_LIST_SCHEMA},
CONF_ACTIONS: ACTION_LIST_SCHEMA,
}
DOMAIN: vol.All(
cv.deprecated(CONF_PUSH),
{
CONF_PUSH: {CONF_PUSH_CATEGORIES: PUSH_CATEGORY_LIST_SCHEMA},
CONF_ACTIONS: ACTION_LIST_SCHEMA,
},
)
},
extra=vol.ALLOW_EXTRA,
)