Skip to content

Commit

Permalink
migrate NASA to use async_forward_entry_setups
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosweet committed Feb 16, 2023
1 parent 817b17a commit 174f8c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/nasa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hass.data[DOMAIN][sourceapi] = coordinator

async_cleanup_device_registry(hass=hass, entry=entry)
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
entry.async_on_unload(entry.add_update_listener(async_reload_entry))

return True
Expand Down
4 changes: 1 addition & 3 deletions hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"name": "Nasa APIs",
"zip_release": true,
"filename": "nasa.zip",
"domains": ["sensor"],
"render_readme": false,
"iot_class": ["Cloud Polling"],
"homeassistant": "2022.4.0"
"homeassistant": "2023.02.0"
}

0 comments on commit 174f8c9

Please sign in to comment.