mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
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:
committed by
Pascal Vizeli
parent
76f2e6015f
commit
6f357cb23e
@@ -140,6 +140,7 @@ async def test_add_new_switch(hass):
|
||||
switch = Mock()
|
||||
switch.name = "name"
|
||||
switch.type = "Smart plug"
|
||||
switch.uniqueid = "1"
|
||||
switch.register_async_callback = Mock()
|
||||
async_dispatcher_send(hass, gateway.async_event_new_device("light"), [switch])
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in New Issue
Block a user