Skip to content

Commit 3733b9d

Browse files
committed
Fix deprecation warning
1 parent 9250d63 commit 3733b9d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

custom_components/zammad/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Custom integration to integrate Zammad with Home Assistant.
33
"""
4+
45
from aiohttp.client_exceptions import ClientConnectorError
56
from homeassistant.config_entries import ConfigEntry
67
from homeassistant.core import HomeAssistant
@@ -50,10 +51,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
5051

5152
hass.data.setdefault(DOMAIN, {})[entry.entry_id] = coordinator
5253

53-
for platform in PLATFORMS:
54-
hass.async_add_job(
55-
hass.config_entries.async_forward_entry_setup(entry, platform)
56-
)
54+
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
5755

5856
entry.add_update_listener(async_reload_entry)
5957
return True

0 commit comments

Comments
 (0)