From 26972942ca4cfdc1d319a883b8cc83e7de4e47dc Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Wed, 29 Dec 2021 14:22:31 -0800 Subject: [PATCH] Deprecate the Legacy Works with Nest API (#63027) --- homeassistant/components/nest/legacy/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/nest/legacy/__init__.py b/homeassistant/components/nest/legacy/__init__.py index 2259ee0ad5c..ce1fdd0e7ac 100644 --- a/homeassistant/components/nest/legacy/__init__.py +++ b/homeassistant/components/nest/legacy/__init__.py @@ -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])