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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user