Skip to content

Commit 2781bf1

Browse files
authored
Fix deprecated HA API (#62)
* Fix deprecated HA API * fix * Fix
1 parent d3b7606 commit 2781bf1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

custom_components/netdaemon/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,7 @@ async def entity_remove(call):
150150
hass.services.async_register(DOMAIN, SERVICE_ENTITY_REMOVE, entity_remove)
151151

152152
# Platforms
153-
for platform in PLATFORMS:
154-
LOGGER.debug("Adding platfrom %s", platform)
155-
hass.async_add_job(
156-
hass.config_entries.async_forward_entry_setup(config_entry, platform)
157-
)
153+
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
158154

159155
config_entry.add_update_listener(async_reload_entry)
160156

0 commit comments

Comments
 (0)