Rewrite rfxtrx init logic to do away with global object (#37699)

* Rewrite init logic to do away with global object

* Put constant at end

* Use a set instead of list for device_ids
This commit is contained in:
Joakim Plate 2020-07-10 14:52:07 +02:00 committed by GitHub
parent b45a952d61
commit 67038c6ba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 365 additions and 334 deletions

View file

@ -59,8 +59,6 @@ async def rfxtrx_cleanup():
):
yield
rfxtrx_core.RFX_DEVICES.clear()
@pytest.fixture(name="rfxtrx")
async def rfxtrx_fixture(hass):