Skip to content

Commit 1a973bc

Browse files
committed
migration hot fix
1 parent f0a0957 commit 1a973bc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

custom_components/pdf_scrape/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,6 @@ async def async_migrate_entry(
231231
await store.async_save(data)
232232
new_data[CONF_TYPE] = ConfType.HTTP
233233

234-
hass.config_entries.async_update_entry(
235-
config_entry, data=new_data, version=1, minor_version=2
236-
)
237-
238234
if config_entry.subentries:
239235
for subentry in config_entry.subentries.values():
240236
if pdf_page := subentry.data.get("pdf_page"):
@@ -247,6 +243,10 @@ async def async_migrate_entry(
247243
data=new_data,
248244
)
249245

246+
hass.config_entries.async_update_entry(
247+
config_entry, data=new_data, version=1, minor_version=2
248+
)
249+
250250
return True
251251

252252

0 commit comments

Comments
 (0)