mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Fix Wemo create task for awaitable (#62159)
This commit is contained in:
parent
8683a30380
commit
d874eb261d
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user