First pass fixing tests that raise exceptions caught by asyncio.gather (#25860)
* First pass fixing tests that raise exceptions caught by asyncio.gather * Fix demo test * lint
This commit is contained in:
1 parent
76f2e6015f
commit
6f357cb23e
18 files changed
+79
-14
No files matched your search
@@ -190,6 +190,7 @@ async def test_add_new_light(hass):
|
||||
gateway = await setup_gateway(hass, {})
|
||||
light = Mock()
|
||||
light.name = "name"
|
||||
light.uniqueid = "1"
|
||||
light.register_async_callback = Mock()
|
||||
async_dispatcher_send(hass, gateway.async_event_new_device("light"), [light])
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in new issue
Block a user