Fix Wemo create task for awaitable (#62159)

pull/62215/head
Eric Severance 2021-12-17 07:23:53 -08:00 committed by GitHub
parent 8683a30380
commit d874eb261d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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."""