Add deprecation warning to Somfy integration (#71653)

pull/71780/head
Mick Vleeshouwer 2022-05-13 12:15:49 +02:00 committed by GitHub
parent c8d171c475
commit f301de98e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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(