Closed bmos closed 4 months ago
This is based on what I see in source code of other integrations: https://github.com/gody01/ecovent_v2/blob/da9919699538d3dd7c41c58a1d630480b1f94bf1/README.md?plain=1#L106-L108
I'm unclear whether both calls need await
, as here it's just on the create_task call:
Thanks. I should be able to take a look this coming weekend.
Hmmm... components that ship with HA seem to use a different pattern, just:
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
.... not even looping over the platforms. Just picking one at random: https://github.com/home-assistant/core/blob/dev/homeassistant/components/aemet/__init__.py#L54
Yeah... note the new call is _setups
(plural). This works and gets rid of the deprecation warning. Thanks for this PR, but I'm going to close it and include the above fix in my own PR.
working on a fix for https://github.com/dlarrick/hass-kumo/issues/152
I haven't tested this yet.