Deprecate Dune HD YAML configuration (#68381)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Robert Hillis 2022-03-22 08:27:54 -04:00 committed by GitHub
parent 5ed5bccfe8
commit dfc689f49a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,12 @@ class DuneHDConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
self, user_input: dict[str, str] | None = None
) -> FlowResult:
"""Handle configuration by yaml file."""
_LOGGER.warning(
"Configuration of the Dune HD integration in YAML is deprecated and will be "
"removed in Home Assistant 2022.6; Your existing configuration "
"has been imported into the UI automatically and can be safely removed "
"from your configuration.yaml file"
)
assert user_input is not None
host: str = user_input[CONF_HOST]