We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 224b6fc commit 1adb2dbCopy full SHA for 1adb2db
custom_components/spaceapi_endpoint_client/__init__.py
@@ -59,7 +59,7 @@ async def async_setup_entry(
59
60
# Conditionally load switch platform if API key is provided
61
if entry.data.get(CONF_API_KEY):
62
- await hass.config_entries.async_forward_entry_setup(entry, Platform.SWITCH)
+ await hass.config_entries.async_forward_entry_setups(entry, [Platform.SWITCH])
63
64
entry.async_on_unload(entry.add_update_listener(async_reload_entry))
65
0 commit comments