mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Fix existing synology_dsm config entries cannot be setup (#42769)
This commit is contained in:
parent
4e1b7583e0
commit
b1035697c5
@ -166,6 +166,12 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
|
|||||||
|
|
||||||
await entity_registry.async_migrate_entries(hass, entry.entry_id, _async_migrator)
|
await entity_registry.async_migrate_entries(hass, entry.entry_id, _async_migrator)
|
||||||
|
|
||||||
|
# Migrate existing entry configuration
|
||||||
|
if entry.data.get(CONF_VERIFY_SSL) is None:
|
||||||
|
hass.config_entries.async_update_entry(
|
||||||
|
entry, data={**entry.data, CONF_VERIFY_SSL: DEFAULT_VERIFY_SSL}
|
||||||
|
)
|
||||||
|
|
||||||
# Continue setup
|
# Continue setup
|
||||||
api = SynoApi(hass, entry)
|
api = SynoApi(hass, entry)
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user