mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Fix Non-thread-safe operation in wemo tests (#62418)
This commit is contained in:
parent
168fefad88
commit
2dfd4c49da
@ -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…
x
Reference in New Issue
Block a user