mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Add deprecation warning to Somfy integration (#71653)
This commit is contained in:
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:
|
||||
"""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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user