Skip to content

Commit

Permalink
update entry setup func
Browse files Browse the repository at this point in the history
  • Loading branch information
InTheDaylight14 committed Nov 15, 2024
1 parent 2006040 commit 845a4d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion custom_components/npm_switches/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
for platform in PLATFORMS:
if entry.options.get(platform, True):
coordinator.platforms.append(platform)
await hass.config_entries.async_forward_entry_setup(entry, platform)

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
3 changes: 2 additions & 1 deletion custom_components/npm_switches/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"documentation": "https://github.com/InTheDaylight14/nginx-proxy-manager-switches",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/InTheDaylight14/nginx-proxy-manager-switches/issues",
"version": "2.0.0"
"version": "2.0.2",
"homeassistant": "2024.1.1"
}
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "NPM Switches",
"hacs": "1.6.0",
"homeassistant": "2024.01.00"
"homeassistant": "2024.1.1"
}

0 comments on commit 845a4d5

Please sign in to comment.