mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Deprecate Jandy iAqualink YAML configuration (#50644)
This commit is contained in:
parent
f2f64348e7
commit
e7392609e3
@ -54,19 +54,22 @@ PLATFORMS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema(
|
CONFIG_SCHEMA = vol.Schema(
|
||||||
{
|
vol.All(
|
||||||
DOMAIN: vol.Schema(
|
cv.deprecated(DOMAIN),
|
||||||
{
|
{
|
||||||
vol.Required(CONF_USERNAME): cv.string,
|
DOMAIN: vol.Schema(
|
||||||
vol.Required(CONF_PASSWORD): cv.string,
|
{
|
||||||
}
|
vol.Required(CONF_USERNAME): cv.string,
|
||||||
)
|
vol.Required(CONF_PASSWORD): cv.string,
|
||||||
},
|
}
|
||||||
|
)
|
||||||
|
},
|
||||||
|
),
|
||||||
extra=vol.ALLOW_EXTRA,
|
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."""
|
"""Set up the Aqualink component."""
|
||||||
conf = config.get(DOMAIN)
|
conf = config.get(DOMAIN)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user