Deprecate the Legacy Works with Nest API ()

pull/63048/head
Allen Porter 2021-12-29 14:22:31 -08:00 committed by GitHub
parent c6230fef08
commit 26972942ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions
homeassistant/components/nest/legacy

View File

@ -108,6 +108,12 @@ async def async_setup_legacy(hass: HomeAssistant, config: dict) -> bool:
if DOMAIN not in config:
return True
_LOGGER.warning(
"The Legacy Works With Nest API is deprecated and support will be removed "
"in Home Assistant Core 2022.5; See instructions for using the Smart Device "
"Management API at https://www.home-assistant.io/integrations/nest/"
)
conf = config[DOMAIN]
local_auth.initialize(hass, conf[CONF_CLIENT_ID], conf[CONF_CLIENT_SECRET])