Deprecate Jandy iAqualink YAML configuration (#50644)

This commit is contained in:
Franck Nijhof 2021-05-15 13:09:45 +02:00 committed by GitHub
parent f2f64348e7
commit e7392609e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,19 +54,22 @@ PLATFORMS = [
]
CONFIG_SCHEMA = vol.Schema(
{
DOMAIN: vol.Schema(
{
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
}
)
},
vol.All(
cv.deprecated(DOMAIN),
{
DOMAIN: vol.Schema(
{
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
}
)
},
),
extra=vol.ALLOW_EXTRA,
)
async def async_setup(hass: HomeAssistant, config: ConfigType) -> None:
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the Aqualink component."""
conf = config.get(DOMAIN)