home-assistant-core/tests/helpers
J. Nick Koston b403c9f92e
Move thread safety check in area_registry sooner (#116265)
It turns out we have custom components that are writing to the area registry using the async APIs from threads. We now catch it at the point async_fire is called. Instead we should check sooner and use async_fire_internal so we catch the unsafe operation before it can corrupt the registry.
2024-04-27 09:26:35 +02:00
..
snapshots Add support for placeholders in entity name translations (#104453) 2024-01-03 17:34:47 +01:00
__init__.py Fix PEP257 issues 2016-03-09 11:15:04 +01:00
test_aiohttp_client.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_area_registry.py Move thread safety check in area_registry sooner (#116265) 2024-04-27 09:26:35 +02:00
test_category_registry.py Update empty line formatting after module docstring (#114040) 2024-03-23 00:27:57 +01:00
test_check_config.py Add missing platforms_exist guard to check_config (#114600) 2024-04-01 21:37:30 -04:00
test_collection.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_condition.py Enable Ruff A001 (#115654) 2024-04-21 23:25:27 +02:00
test_config_entry_flow.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_config_entry_oauth2_flow.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_config_validation.py Enable Ruff SLOT rules (#115043) 2024-04-09 18:57:27 -10:00
test_debounce.py Add the ability to create Debouncer tasks as background tasks (#113128) 2024-03-12 08:41:12 -04:00
test_deprecation.py Deprecated old backports and typing aliases (#114883) 2024-04-06 13:15:30 -10:00
test_device_registry.py Move thread safety check in device_registry sooner (#116264) 2024-04-27 09:24:55 +02:00
test_discovery.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_discovery_flow.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_dispatcher.py Add debug mode to catch unsafe thread operations using core helpers (#115390) 2024-04-24 03:36:05 +02:00
test_entity.py Always do thread safety checks when writing state for custom components (#116044) 2024-04-24 10:05:52 +02:00
test_entity_component.py Reverse component path (#104087) 2023-12-05 08:43:58 +01:00
test_entity_platform.py Avoid calling valid_entity_id when adding entities if they are already registered (#115388) 2024-04-10 15:18:47 -10:00
test_entity_registry.py Move thread safety check in entity_registry sooner (#116263) 2024-04-27 09:25:19 +02:00
test_entity_values.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_entityfilter.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_event.py Deprecate async_track_state_change in favor of async_track_state_change_event (#115558) 2024-04-18 10:45:14 -05:00
test_floor_registry.py Default floor level to None (and allow unsetting it) (#114249) 2024-03-26 18:58:25 +01:00
test_frame.py Add debug mode to catch unsafe thread operations using core helpers (#115390) 2024-04-24 03:36:05 +02:00
test_group.py Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
test_httpx_client.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_icon.py Keep track of top level components (#115586) 2024-04-17 13:23:20 +02:00
test_importlib.py Adjust importlib helper to avoid leaking memory on re-raise (#115377) 2024-04-10 15:19:17 -10:00
test_init.py Move config_per_platform and extract_domain_configs to config.py (#104989) 2023-12-04 12:48:49 +01:00
test_instance_id.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_integration_platform.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_intent.py Add initial support for floors to intents (#114456) 2024-03-30 16:59:20 -04:00
test_issue_registry.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_json.py Enable Ruff rule PT007 (#113764) 2024-03-19 09:01:07 +01:00
test_label_registry.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_location.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_network.py Add strict connection for cloud (#115814) 2024-04-24 09:57:38 +02:00
test_normalized_name_base_registry.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_ratelimit.py Refactor rate limit helper to track time in seconds (#113898) 2024-03-20 19:49:37 -04:00
test_recorder.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_redact.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_registry.py Unignore Ruff PLR in tests (#114470) 2024-04-01 11:11:59 +02:00
test_reload.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_restore_state.py Ensure test async_create_task eager start behavior matches production (#115517) 2024-04-13 15:58:52 -05:00
test_schema_config_entry_flow.py Enable Ruff rule PT007 (#113764) 2024-03-19 09:01:07 +01:00
test_script.py Ensure scripts with timeouts of zero timeout immediately (#115830) 2024-04-19 18:24:54 +02:00
test_script_variables.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_selector.py Add floor selector (#114614) 2024-04-02 10:43:14 +02:00
test_service.py Don't reload other automations when saving an automation (#80254) 2024-04-16 15:58:57 +02:00
test_significant_change.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_singleton.py Enable Ruff rule PT007 (#113764) 2024-03-19 09:01:07 +01:00
test_start.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_state.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_storage.py Ensure async_test_home_assistant is passed a str in storage tests (#114813) 2024-04-04 12:05:16 +02:00
test_storage_remove.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_sun.py Unignore Ruff PLR in tests (#114470) 2024-04-01 11:11:59 +02:00
test_system_info.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_temperature.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_template.py Bump ruff to 0.4.2 (#116201) 2024-04-26 08:48:32 +02:00
test_translation.py Remove unused legacy state translations (#112023) 2024-04-14 07:13:17 -04:00
test_trigger.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_typing.py Deprecated old backports and typing aliases (#114883) 2024-04-06 13:15:30 -10:00
test_update_coordinator.py Fix race in TimestampDataUpdateCoordinator (#115542) 2024-04-13 16:35:07 -04:00