mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Deprecate Nanoleaf YAML (#63404)
This commit is contained in:
parent
f999266c9a
commit
8e46dff2a2
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user