Fix exception in zwave test (#33711)
would be better to not have it in there but mock has all attributes
This commit is contained in:
parent
18e4493ca3
commit
5711c0882f
2 changed files with 3 additions and 3 deletions
|
@ -704,7 +704,7 @@ async def test_power_schemes(hass, mock_openzwave):
|
||||||
genre=const.GENRE_USER,
|
genre=const.GENRE_USER,
|
||||||
type=const.TYPE_BOOL,
|
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()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
|
@ -726,8 +726,9 @@ async def test_power_schemes(hass, mock_openzwave):
|
||||||
index=const.INDEX_SENSOR_MULTILEVEL_POWER,
|
index=const.INDEX_SENSOR_MULTILEVEL_POWER,
|
||||||
instance=13,
|
instance=13,
|
||||||
command_class=const.COMMAND_CLASS_SENSOR_MULTILEVEL,
|
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()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
assert (
|
assert (
|
||||||
|
|
|
@ -46,7 +46,6 @@ IGNORE_UNCAUGHT_EXCEPTIONS = [
|
||||||
("tests.components.rflink.test_init", "test_send_command_invalid_arguments"),
|
("tests.components.rflink.test_init", "test_send_command_invalid_arguments"),
|
||||||
("tests.components.samsungtv.test_media_player", "test_update_connection_failure"),
|
("tests.components.samsungtv.test_media_player", "test_update_connection_failure"),
|
||||||
("tests.components.unifi_direct.test_device_tracker", "test_get_scanner"),
|
("tests.components.unifi_direct.test_device_tracker", "test_get_scanner"),
|
||||||
("tests.components.zwave.test_init", "test_power_schemes"),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
IGNORE_UNCAUGHT_JSON_EXCEPTIONS = [
|
IGNORE_UNCAUGHT_JSON_EXCEPTIONS = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue