mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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)
|
||||
|
||||
# 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
|
||||
api = SynoApi(hass, entry)
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user