We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0a0957 commit 1a973bcCopy full SHA for 1a973bc
1 file changed
custom_components/pdf_scrape/__init__.py
@@ -231,10 +231,6 @@ async def async_migrate_entry(
231
await store.async_save(data)
232
new_data[CONF_TYPE] = ConfType.HTTP
233
234
- hass.config_entries.async_update_entry(
235
- config_entry, data=new_data, version=1, minor_version=2
236
- )
237
-
238
if config_entry.subentries:
239
for subentry in config_entry.subentries.values():
240
if pdf_page := subentry.data.get("pdf_page"):
@@ -247,6 +243,10 @@ async def async_migrate_entry(
247
243
data=new_data,
248
244
)
249
245
246
+ hass.config_entries.async_update_entry(
+ config_entry, data=new_data, version=1, minor_version=2
+ )
+
250
return True
251
252
0 commit comments