Deprecate Nanoleaf YAML (#63404)

This commit is contained in:
Milan Meulemans 2022-01-05 08:07:11 +01:00 committed by GitHub
parent f999266c9a
commit 8e46dff2a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,12 @@ async def async_setup_platform(
discovery_info: DiscoveryInfoType | None = None, discovery_info: DiscoveryInfoType | None = None,
) -> None: ) -> None:
"""Import Nanoleaf light platform.""" """Import Nanoleaf light platform."""
_LOGGER.warning(
"Configuration of the Nanoleaf integration in YAML is deprecated and "
"will be removed in Home Assistant 2022.4; Your existing configuration "
"has been imported into the UI automatically and can be safely removed "
"from your configuration.yaml file"
)
hass.async_create_task( hass.async_create_task(
hass.config_entries.flow.async_init( hass.config_entries.flow.async_init(
DOMAIN, DOMAIN,