We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99b8670 commit f0a0957Copy full SHA for f0a0957
1 file changed
custom_components/pdf_scrape/__init__.py
@@ -237,10 +237,10 @@ async def async_migrate_entry(
237
238
if config_entry.subentries:
239
for subentry in config_entry.subentries.values():
240
- if pdf_page := subentry.data.get("page_page"):
+ if pdf_page := subentry.data.get("pdf_page"):
241
new_data: dict[str, Any] = {**subentry.data}
242
new_data[CONF_PDF_PAGES] = pdf_page
243
- new_data.pop("page_page")
+ del new_data["pdf_page"]
244
hass.config_entries.async_update_subentry(
245
config_entry,
246
subentry,
0 commit comments