diff --git a/tests/components/zwave/test_init.py b/tests/components/zwave/test_init.py index 6d19022f959..71f7ea17f76 100644 --- a/tests/components/zwave/test_init.py +++ b/tests/components/zwave/test_init.py @@ -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 ( diff --git a/tests/ignore_uncaught_exceptions.py b/tests/ignore_uncaught_exceptions.py index 6fa1f017567..65ace96917d 100644 --- a/tests/ignore_uncaught_exceptions.py +++ b/tests/ignore_uncaught_exceptions.py @@ -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 = [