Skip to content

Commit 1adb2db

Browse files
committed
fix: Update async_setup_entry to use async_forward_entry_setups for improved platform loading logic.
1 parent 224b6fc commit 1adb2db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/spaceapi_endpoint_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async def async_setup_entry(
5959

6060
# Conditionally load switch platform if API key is provided
6161
if entry.data.get(CONF_API_KEY):
62-
await hass.config_entries.async_forward_entry_setup(entry, Platform.SWITCH)
62+
await hass.config_entries.async_forward_entry_setups(entry, [Platform.SWITCH])
6363

6464
entry.async_on_unload(entry.add_update_listener(async_reload_entry))
6565

0 commit comments

Comments
 (0)