Apply isort on rfxtrx classes (#27615)
* Move imports in rfxtrx component * Apply isort on rfxtrx files * Update test_switch.py
This commit is contained in:
1 parent
288d370ef5
commit
de7963544f
10 files changed
+24
-16
No files matched your search
@@ -1,17 +1,18 @@
|
||||
"""The tests for the Rfxtrx switch platform."""
|
||||
"""The tests for the RFXtrx switch platform."""
|
||||
import unittest
|
||||
import pytest
|
||||
import RFXtrx as rfxtrxmod
|
||||
|
||||
from homeassistant.setup import setup_component
|
||||
import RFXtrx as rfxtrxmod
|
||||
import pytest
|
||||
|
||||
from homeassistant.components import rfxtrx as rfxtrx_core
|
||||
from homeassistant.setup import setup_component
|
||||
|
||||
from tests.common import get_test_home_assistant, mock_component
|
||||
|
||||
|
||||
@pytest.mark.skipif("os.environ.get('RFXTRX') != 'RUN'")
|
||||
class TestSwitchRfxtrx(unittest.TestCase):
|
||||
"""Test the Rfxtrx switch platform."""
|
||||
"""Test the RFXtrx switch platform."""
|
||||
|
||||
def setUp(self):
|
||||
"""Set up things to be run when tests are started."""
|
||||
|
||||
Reference in new issue
Block a user