Deprecate Synology DSM YAML configuration (#50366)

pull/50371/head
Franck Nijhof 2021-05-09 20:28:24 +02:00 committed by GitHub
parent 3f463f22a1
commit 43adba4aff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -90,7 +90,10 @@ CONFIG_SCHEMA = vol.Schema(
)
CONFIG_SCHEMA = vol.Schema(
{DOMAIN: vol.Schema(vol.All(cv.ensure_list, [CONFIG_SCHEMA]))},
vol.All(
cv.deprecated(DOMAIN),
{DOMAIN: vol.Schema(vol.All(cv.ensure_list, [CONFIG_SCHEMA]))},
),
extra=vol.ALLOW_EXTRA,
)