mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Replace asyncio.wait with asyncio.gather since wait ignores exceptions (#33380)
* replace asyncio.wait with asyncio.gather since wait ignores exceptions fix for test_entity_platform so it expects the exception * changed to log on failed domains * discovered that this fix actually removes other uncaught exceptions * fix in the list of ignored exceptions * replaced a few ignores on dyson tests that work locally but fail in the CI * two more tests that are failing on the CI and not locally * removed assertion on multiple entries with same unique_id - replaced with log and return reverted test_entity_platform to its original since now there is no exception thrown * entered all the dyson tests. they all pass locally and probabilistically fail in the CI * removed unnecessary str() for exception * added log message for duplicate entity_id / unique_id * removed log in case of False return value * added exc_info * change the use of exc_info
This commit is contained in:
@@ -4,7 +4,6 @@ IGNORE_UNCAUGHT_EXCEPTIONS = [
|
||||
("tests.components.cast.test_media_player", "test_entry_setup_single_config"),
|
||||
("tests.components.cast.test_media_player", "test_entry_setup_list_config"),
|
||||
("tests.components.cast.test_media_player", "test_entry_setup_platform_not_ready"),
|
||||
("tests.components.config.test_automation", "test_delete_automation"),
|
||||
("tests.components.config.test_group", "test_update_device_config"),
|
||||
("tests.components.default_config.test_init", "test_setup"),
|
||||
("tests.components.demo.test_init", "test_setting_up_demo"),
|
||||
@@ -46,20 +45,9 @@ IGNORE_UNCAUGHT_EXCEPTIONS = [
|
||||
("tests.components.dyson.test_fan", "test_purecool_update_state_filter_inv"),
|
||||
("tests.components.dyson.test_fan", "test_purecool_component_setup_only_once"),
|
||||
("tests.components.dyson.test_sensor", "test_purecool_component_setup_only_once"),
|
||||
("test_homeassistant_bridge", "test_homeassistant_bridge_fan_setup"),
|
||||
("tests.components.ios.test_init", "test_creating_entry_sets_up_sensor"),
|
||||
("tests.components.ios.test_init", "test_not_configuring_ios_not_creates_entry"),
|
||||
("tests.components.local_file.test_camera", "test_file_not_readable"),
|
||||
("tests.components.meteo_france.test_config_flow", "test_user"),
|
||||
("tests.components.meteo_france.test_config_flow", "test_import"),
|
||||
("tests.components.mikrotik.test_device_tracker", "test_restoring_devices"),
|
||||
("tests.components.mikrotik.test_hub", "test_arp_ping"),
|
||||
("tests.components.mqtt.test_alarm_control_panel", "test_unique_id"),
|
||||
("tests.components.mqtt.test_binary_sensor", "test_unique_id"),
|
||||
("tests.components.mqtt.test_camera", "test_unique_id"),
|
||||
("tests.components.mqtt.test_climate", "test_unique_id"),
|
||||
("tests.components.mqtt.test_cover", "test_unique_id"),
|
||||
("tests.components.mqtt.test_fan", "test_unique_id"),
|
||||
(
|
||||
"tests.components.mqtt.test_init",
|
||||
"test_setup_uses_certificate_on_certificate_set_to_auto",
|
||||
@@ -80,22 +68,14 @@ IGNORE_UNCAUGHT_EXCEPTIONS = [
|
||||
"tests.components.mqtt.test_init",
|
||||
"test_setup_with_tls_config_of_v1_under_python36_only_uses_v1",
|
||||
),
|
||||
("tests.components.mqtt.test_legacy_vacuum", "test_unique_id"),
|
||||
("tests.components.mqtt.test_light", "test_unique_id"),
|
||||
("tests.components.mqtt.test_light", "test_entity_device_info_remove"),
|
||||
("tests.components.mqtt.test_light_json", "test_unique_id"),
|
||||
("tests.components.mqtt.test_light_json", "test_entity_device_info_remove"),
|
||||
("tests.components.mqtt.test_light_template", "test_entity_device_info_remove"),
|
||||
("tests.components.mqtt.test_lock", "test_unique_id"),
|
||||
("tests.components.mqtt.test_sensor", "test_unique_id"),
|
||||
("tests.components.mqtt.test_state_vacuum", "test_unique_id"),
|
||||
("tests.components.mqtt.test_switch", "test_unique_id"),
|
||||
("tests.components.mqtt.test_switch", "test_entity_device_info_remove"),
|
||||
("tests.components.qwikswitch.test_init", "test_binary_sensor_device"),
|
||||
("tests.components.qwikswitch.test_init", "test_sensor_device"),
|
||||
("tests.components.rflink.test_init", "test_send_command_invalid_arguments"),
|
||||
("tests.components.samsungtv.test_media_player", "test_update_connection_failure"),
|
||||
("tests.components.tplink.test_init", "test_configuring_device_types"),
|
||||
(
|
||||
"tests.components.tplink.test_init",
|
||||
"test_configuring_devices_from_multiple_sources",
|
||||
@@ -108,18 +88,8 @@ IGNORE_UNCAUGHT_EXCEPTIONS = [
|
||||
("tests.components.unifi_direct.test_device_tracker", "test_get_scanner"),
|
||||
("tests.components.upnp.test_init", "test_async_setup_entry_default"),
|
||||
("tests.components.upnp.test_init", "test_async_setup_entry_port_mapping"),
|
||||
("tests.components.vera.test_init", "test_init"),
|
||||
("tests.components.wunderground.test_sensor", "test_fails_because_of_unique_id"),
|
||||
("tests.components.yr.test_sensor", "test_default_setup"),
|
||||
("tests.components.yr.test_sensor", "test_custom_setup"),
|
||||
("tests.components.yr.test_sensor", "test_forecast_setup"),
|
||||
("tests.components.zwave.test_init", "test_power_schemes"),
|
||||
(
|
||||
"tests.helpers.test_entity_platform",
|
||||
"test_adding_entities_with_generator_and_thread_callback",
|
||||
),
|
||||
(
|
||||
"tests.helpers.test_entity_platform",
|
||||
"test_not_adding_duplicate_entities_with_unique_id",
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user