Move imports in rfxtrx component (#27549)

This commit is contained in:
javicalle authored and Paulus Schoutsen committed 2019-10-12 12:37:59 -07:00
1 parent 3873a1b070
commit 40e5beb0ed
9 files changed
+11 -32

No files matched your search

+1 -5
View File
@@ -1,7 +1,7 @@
"""The tests for the Rfxtrx switch platform."""
import unittest
import pytest
import RFXtrx as rfxtrxmod
from homeassistant.setup import setup_component
from homeassistant.components import rfxtrx as rfxtrx_core
@@ -166,8 +166,6 @@ class TestSwitchRfxtrx(unittest.TestCase):
},
)
import RFXtrx as rfxtrxmod
rfxtrx_core.RFXOBJECT = rfxtrxmod.Core(
"", transport_protocol=rfxtrxmod.DummyTransport
)
@@ -200,8 +198,6 @@ class TestSwitchRfxtrx(unittest.TestCase):
},
)
import RFXtrx as rfxtrxmod
rfxtrx_core.RFXOBJECT = rfxtrxmod.Core(
"", transport_protocol=rfxtrxmod.DummyTransport
)