Convert rfxtrx tests to pytest async tests and re-enable (#37206)
* Rework and re-enable rfxtrx tests * Add missed change to _signal_event * Fixup the dummy serial that causes max cpu * Make sure we cleanup thread here too * Make sure we always wait for tasks before we check state * Some more places we need to wait before checking
This commit is contained in:
1 parent
b859be8cea
commit
ab4687d914
7 files changed
+1079
-1032
No files matched your search
@@ -1 +1,6 @@
|
||||
"""Tests for the rfxtrx component."""
|
||||
from homeassistant.components import rfxtrx
|
||||
|
||||
|
||||
async def _signal_event(hass, event):
|
||||
await hass.async_add_executor_job(rfxtrx.RECEIVED_EVT_SUBSCRIBERS[0], event)
|
||||
Reference in new issue
Block a user