From 35dd1510344188b7281970511bf21214097f4042 Mon Sep 17 00:00:00 2001 From: MillerKyle72 Date: Fri, 15 Nov 2024 15:34:34 +0000 Subject: [PATCH] update entry setup func --- custom_components/npm_switches/__init__.py | 3 ++- custom_components/npm_switches/manifest.json | 3 ++- hacs.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/custom_components/npm_switches/__init__.py b/custom_components/npm_switches/__init__.py index 883994b..658371d 100644 --- a/custom_components/npm_switches/__init__.py +++ b/custom_components/npm_switches/__init__.py @@ -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 diff --git a/custom_components/npm_switches/manifest.json b/custom_components/npm_switches/manifest.json index 9b6956b..ce15c70 100644 --- a/custom_components/npm_switches/manifest.json +++ b/custom_components/npm_switches/manifest.json @@ -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" } \ No newline at end of file diff --git a/hacs.json b/hacs.json index 3420c93..ee6e36e 100644 --- a/hacs.json +++ b/hacs.json @@ -1,5 +1,5 @@ { "name": "NPM Switches", "hacs": "1.6.0", - "homeassistant": "2024.01.00" + "homeassistant": "2024.1.1" } \ No newline at end of file