Add deprecation warning to Somfy integration (#71653)
parent
c8d171c475
commit
f301de98e4
|
@ -77,6 +77,14 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
"""Set up Somfy from a config entry."""
|
"""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
|
# Backwards compat
|
||||||
if "auth_implementation" not in entry.data:
|
if "auth_implementation" not in entry.data:
|
||||||
hass.config_entries.async_update_entry(
|
hass.config_entries.async_update_entry(
|
||||||
|
|
Loading…
Reference in New Issue