Fix exception in zwave test (#33711)

would be better to not have it in there but mock has all attributes
pull/33727/head
Ziv 2020-04-06 01:17:24 +03:00 committed by GitHub
parent 18e4493ca3
commit 5711c0882f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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 (

View File

@ -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 = [