Fix exception in zwave test (#33711)
would be better to not have it in there but mock has all attributespull/33727/head
parent
18e4493ca3
commit
5711c0882f
|
@ -704,7 +704,7 @@ async def test_power_schemes(hass, mock_openzwave):
|
|||
genre=const.GENRE_USER,
|
||||
type=const.TYPE_BOOL,
|
||||
)
|
||||
hass.async_add_job(mock_receivers[0], node, switch)
|
||||
await hass.async_add_job(mock_receivers[0], node, switch)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
@ -726,8 +726,9 @@ async def test_power_schemes(hass, mock_openzwave):
|
|||
index=const.INDEX_SENSOR_MULTILEVEL_POWER,
|
||||
instance=13,
|
||||
command_class=const.COMMAND_CLASS_SENSOR_MULTILEVEL,
|
||||
genre=const.GENRE_USER, # to avoid exception
|
||||
)
|
||||
hass.async_add_job(mock_receivers[0], node, power)
|
||||
await hass.async_add_job(mock_receivers[0], node, power)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert (
|
||||
|
|
|
@ -46,7 +46,6 @@ IGNORE_UNCAUGHT_EXCEPTIONS = [
|
|||
("tests.components.rflink.test_init", "test_send_command_invalid_arguments"),
|
||||
("tests.components.samsungtv.test_media_player", "test_update_connection_failure"),
|
||||
("tests.components.unifi_direct.test_device_tracker", "test_get_scanner"),
|
||||
("tests.components.zwave.test_init", "test_power_schemes"),
|
||||
]
|
||||
|
||||
IGNORE_UNCAUGHT_JSON_EXCEPTIONS = [
|
||||
|
|
Loading…
Reference in New Issue