@@ -453,6 +453,10 @@ async def test_option_flow_install_multi_pan_addon_zha_other_radio(
453453 }
454454
455455
456+ @pytest .mark .parametrize (
457+ "ignore_translations" ,
458+ ["component.test.options.abort.not_hassio" ],
459+ )
456460async def test_option_flow_non_hassio (
457461 hass : HomeAssistant ,
458462) -> None :
@@ -765,6 +769,10 @@ async def test_option_flow_addon_installed_same_device_do_not_uninstall_multi_pa
765769 assert result ["type" ] is FlowResultType .CREATE_ENTRY
766770
767771
772+ @pytest .mark .parametrize (
773+ "ignore_translations" ,
774+ ["component.test.options.abort.addon_already_running" ],
775+ )
768776async def test_option_flow_flasher_already_running_failure (
769777 hass : HomeAssistant ,
770778 addon_info ,
@@ -876,6 +884,10 @@ async def test_option_flow_addon_installed_same_device_flasher_already_installed
876884 assert result ["type" ] is FlowResultType .CREATE_ENTRY
877885
878886
887+ @pytest .mark .parametrize (
888+ "ignore_translations" ,
889+ ["component.test.options.abort.addon_install_failed" ],
890+ )
879891async def test_option_flow_flasher_install_failure (
880892 hass : HomeAssistant ,
881893 addon_info ,
@@ -942,6 +954,10 @@ async def test_option_flow_flasher_install_failure(
942954 assert result ["reason" ] == "addon_install_failed"
943955
944956
957+ @pytest .mark .parametrize (
958+ "ignore_translations" ,
959+ ["component.test.options.abort.addon_start_failed" ],
960+ )
945961async def test_option_flow_flasher_addon_flash_failure (
946962 hass : HomeAssistant ,
947963 addon_info ,
@@ -1004,6 +1020,10 @@ async def test_option_flow_flasher_addon_flash_failure(
10041020 assert result ["description_placeholders" ]["addon_name" ] == "Silicon Labs Flasher"
10051021
10061022
1023+ @pytest .mark .parametrize (
1024+ "ignore_translations" ,
1025+ ["component.test.options.abort.zha_migration_failed" ],
1026+ )
10071027@patch (
10081028 "homeassistant.components.zha.radio_manager.ZhaMultiPANMigrationHelper.async_initiate_migration" ,
10091029 side_effect = Exception ("Boom!" ),
@@ -1065,6 +1085,10 @@ async def test_option_flow_uninstall_migration_initiate_failure(
10651085 mock_initiate_migration .assert_called_once ()
10661086
10671087
1088+ @pytest .mark .parametrize (
1089+ "ignore_translations" ,
1090+ ["component.test.options.abort.zha_migration_failed" ],
1091+ )
10681092@patch (
10691093 "homeassistant.components.zha.radio_manager.ZhaMultiPANMigrationHelper.async_finish_migration" ,
10701094 side_effect = Exception ("Boom!" ),
@@ -1166,6 +1190,10 @@ async def test_option_flow_do_not_install_multi_pan_addon(
11661190 assert result ["type" ] is FlowResultType .CREATE_ENTRY
11671191
11681192
1193+ @pytest .mark .parametrize (
1194+ "ignore_translations" ,
1195+ ["component.test.options.abort.addon_install_failed" ],
1196+ )
11691197async def test_option_flow_install_multi_pan_addon_install_fails (
11701198 hass : HomeAssistant ,
11711199 addon_store_info ,
@@ -1209,6 +1237,10 @@ async def test_option_flow_install_multi_pan_addon_install_fails(
12091237 assert result ["reason" ] == "addon_install_failed"
12101238
12111239
1240+ @pytest .mark .parametrize (
1241+ "ignore_translations" ,
1242+ ["component.test.options.abort.addon_start_failed" ],
1243+ )
12121244async def test_option_flow_install_multi_pan_addon_start_fails (
12131245 hass : HomeAssistant ,
12141246 addon_store_info ,
@@ -1271,6 +1303,10 @@ async def test_option_flow_install_multi_pan_addon_start_fails(
12711303 assert result ["reason" ] == "addon_start_failed"
12721304
12731305
1306+ @pytest .mark .parametrize (
1307+ "ignore_translations" ,
1308+ ["component.test.options.abort.addon_set_config_failed" ],
1309+ )
12741310async def test_option_flow_install_multi_pan_addon_set_options_fails (
12751311 hass : HomeAssistant ,
12761312 addon_store_info ,
@@ -1314,6 +1350,10 @@ async def test_option_flow_install_multi_pan_addon_set_options_fails(
13141350 assert result ["reason" ] == "addon_set_config_failed"
13151351
13161352
1353+ @pytest .mark .parametrize (
1354+ "ignore_translations" ,
1355+ ["component.test.options.abort.addon_info_failed" ],
1356+ )
13171357async def test_option_flow_addon_info_fails (
13181358 hass : HomeAssistant ,
13191359 addon_store_info ,
@@ -1337,6 +1377,10 @@ async def test_option_flow_addon_info_fails(
13371377 assert result ["reason" ] == "addon_info_failed"
13381378
13391379
1380+ @pytest .mark .parametrize (
1381+ "ignore_translations" ,
1382+ ["component.test.options.abort.zha_migration_failed" ],
1383+ )
13401384@patch (
13411385 "homeassistant.components.zha.radio_manager.ZhaMultiPANMigrationHelper.async_initiate_migration" ,
13421386 side_effect = Exception ("Boom!" ),
@@ -1392,6 +1436,10 @@ async def test_option_flow_install_multi_pan_addon_zha_migration_fails_step_1(
13921436 set_addon_options .assert_not_called ()
13931437
13941438
1439+ @pytest .mark .parametrize (
1440+ "ignore_translations" ,
1441+ ["component.test.options.abort.zha_migration_failed" ],
1442+ )
13951443@patch (
13961444 "homeassistant.components.zha.radio_manager.ZhaMultiPANMigrationHelper.async_finish_migration" ,
13971445 side_effect = Exception ("Boom!" ),
0 commit comments