Skip to content

Commit

Permalink
Fix "Passing coroutines is forbidden, use tasks explicitly" error in …
Browse files Browse the repository at this point in the history
…HA 2023.6
  • Loading branch information
amosyuen committed Jun 11, 2023
1 parent fa97a4a commit 84ae4c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/mikucare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def async_create_data(
for device in devices:
coordinator = MikuCareDeviceUpdateCoordinator(hass, api, device)
device_coordinators.append(coordinator)
futures.append(coordinator.connect())
futures.append(asyncio.create_task(coordinator.connect()))
await asyncio.wait(futures)

return {
Expand Down
2 changes: 1 addition & 1 deletion custom_components/mikucare/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/amosyuen/ha-mikucare/issues",
"requirements": ["boto3>=1.26.59"],
"version": "1.0.2"
"version": "1.0.3"
}

0 comments on commit 84ae4c0

Please sign in to comment.