Fix Wemo create task for awaitable (#62159)

This commit is contained in:
Eric Severance
2021-12-17 07:23:53 -08:00
committed by GitHub
parent 8683a30380
commit d874eb261d

View File

@@ -61,7 +61,7 @@ class DeviceCoordinator(DataUpdateCoordinator):
)
else:
updated = self.wemo.subscription_update(event_type, params)
self.hass.add_job(self._async_subscription_callback(updated))
self.hass.create_task(self._async_subscription_callback(updated))
async def _async_subscription_callback(self, updated: bool) -> None:
"""Update the state by the Wemo device."""