Fix Non-thread-safe operation in wemo tests (#62418)
This commit is contained in:
parent
168fefad88
commit
2dfd4c49da
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ async def _async_multiple_call_helper(hass, pywemo_device, call1, call2):
|
|||
return
|
||||
nonlocal call_count
|
||||
call_count += 1
|
||||
hass.add_job(waiting.set)
|
||||
hass.loop.call_soon_threadsafe(waiting.set)
|
||||
event.wait()
|
||||
|
||||
# Danger! Do not use a Mock side_effect here. The test will deadlock. When
|
||||
|
|
Loading…
Add table
Reference in a new issue