Fix uncaught exceptions in dynalite (#33374)
This commit is contained in:
3 files changed
+7
-4
No files matched your search
@@ -55,8 +55,11 @@ async def test_add_devices_then_register(hass):
|
||||
device1 = Mock()
|
||||
device1.category = "light"
|
||||
device1.name = "NAME"
|
||||
device1.unique_id = "unique1"
|
||||
device2 = Mock()
|
||||
device2.category = "switch"
|
||||
device2.name = "NAME2"
|
||||
device2.unique_id = "unique2"
|
||||
new_device_func([device1, device2])
|
||||
await hass.async_block_till_done()
|
||||
assert hass.states.get("light.name")
|
||||
@@ -78,8 +81,11 @@ async def test_register_then_add_devices(hass):
|
||||
device1 = Mock()
|
||||
device1.category = "light"
|
||||
device1.name = "NAME"
|
||||
device1.unique_id = "unique1"
|
||||
device2 = Mock()
|
||||
device2.category = "switch"
|
||||
device2.name = "NAME2"
|
||||
device2.unique_id = "unique2"
|
||||
new_device_func([device1, device2])
|
||||
await hass.async_block_till_done()
|
||||
assert hass.states.get("light.name")
|
||||
Reference in new issue
Block a user