Fix slow tests (#3444)
* Fix RFXtrx tests * Report slow tests on CI * Minor rfxtrx clean up * rfxtrx test tweak
This commit is contained in:
1 parent
256062fd99
commit
87fe83dcb9
3 files changed
+18
-18
No files matched your search
@@ -153,13 +153,15 @@ def setup(hass, config):
|
||||
|
||||
if dummy_connection:
|
||||
RFXOBJECT =\
|
||||
rfxtrxmod.Core(device, handle_receive, debug=debug,
|
||||
transport_protocol=rfxtrxmod.DummyTransport2)
|
||||
rfxtrxmod.Connect(device, handle_receive, debug=debug,
|
||||
transport_protocol=rfxtrxmod.DummyTransport2)
|
||||
else:
|
||||
RFXOBJECT = rfxtrxmod.Core(device, handle_receive, debug=debug)
|
||||
RFXOBJECT = rfxtrxmod.Connect(device, handle_receive, debug=debug)
|
||||
|
||||
def _shutdown_rfxtrx(event):
|
||||
"""Close connection with RFXtrx."""
|
||||
RFXOBJECT.close_connection()
|
||||
|
||||
hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, _shutdown_rfxtrx)
|
||||
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user