Deprecate SmartHab YAML configuration (#50602)

This commit is contained in:
Franck Nijhof
2021-05-14 15:46:49 +02:00
committed by GitHub
parent 8fcf06a2a9
commit f5c31b89f8

View File

@@ -17,6 +17,8 @@ PLATFORMS = ["light", "cover"]
_LOGGER = logging.getLogger(__name__)
CONFIG_SCHEMA = vol.Schema(
vol.All(
cv.deprecated(DOMAIN),
{
DOMAIN: vol.Schema(
{
@@ -25,6 +27,7 @@ CONFIG_SCHEMA = vol.Schema(
}
)
},
),
extra=vol.ALLOW_EXTRA,
)