From f301de98e47bc45548f41c0a01d172d5d2a34f64 Mon Sep 17 00:00:00 2001 From: Mick Vleeshouwer Date: Fri, 13 May 2022 12:15:49 +0200 Subject: [PATCH] Add deprecation warning to Somfy integration (#71653) --- homeassistant/components/somfy/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homeassistant/components/somfy/__init__.py b/homeassistant/components/somfy/__init__.py index ae12c4ea266..ed6c58bc0a0 100644 --- a/homeassistant/components/somfy/__init__.py +++ b/homeassistant/components/somfy/__init__.py @@ -77,6 +77,14 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Somfy from a config entry.""" + + _LOGGER.warning( + "The Somfy integration is deprecated and will be removed " + "in Home Assistant Core 2022.7; due to the Somfy Open API deprecation." + "The Somfy Open API will shutdown June 21st 2022, migrate to the " + "Overkiz integration to control your Somfy devices" + ) + # Backwards compat if "auth_implementation" not in entry.data: hass.config_entries.async_update_entry(