1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Always do thread safety checks when calling async_fire (#116055)

This commit is contained in:
J. Nick Koston
2024-04-24 06:41:55 +02:00
committed by GitHub
parent 53a179088f
commit 4a59ee978c
2 changed files with 10 additions and 10 deletions

View File

@@ -3449,8 +3449,6 @@ async def test_debug_mode_defaults_to_off(hass: HomeAssistant) -> None:
async def test_async_fire_thread_safety(hass: HomeAssistant) -> None:
"""Test async_fire thread safety."""
hass.config.debug = True
events = async_capture_events(hass, "test_event")
hass.bus.async_fire("test_event")
with pytest.raises(