Drop dummy connection (#37805)

We now mock the module
This commit is contained in:
Joakim Plate 2020-07-13 03:40:45 +02:00 committed by GitHub
parent 8e71559068
commit aaa073183c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 76 deletions

View file

@ -13,13 +13,7 @@ async def test_one_light(hass, rfxtrx):
assert await async_setup_component(
hass,
"rfxtrx",
{
"rfxtrx": {
"device": "abcd",
"dummy": True,
"devices": {"0b1100cd0213c7f210020f51": {}},
}
},
{"rfxtrx": {"device": "abcd", "devices": {"0b1100cd0213c7f210020f51": {}}}},
)
await hass.async_block_till_done()
@ -97,7 +91,6 @@ async def test_several_lights(hass, rfxtrx):
{
"rfxtrx": {
"device": "abcd",
"dummy": True,
"devices": {
"0b1100cd0213c7f230020f71": {},
"0b1100100118cdea02020f70": {},
@ -133,7 +126,6 @@ async def test_repetitions(hass, rfxtrx, repetitions):
{
"rfxtrx": {
"device": "abcd",
"dummy": True,
"devices": {
"0b1100cd0213c7f230020f71": {"signal_repetitions": repetitions}
},
@ -153,9 +145,7 @@ async def test_repetitions(hass, rfxtrx, repetitions):
async def test_discover_light(hass, rfxtrx):
"""Test with discovery of lights."""
assert await async_setup_component(
hass,
"rfxtrx",
{"rfxtrx": {"device": "abcd", "dummy": True, "automatic_add": True}},
hass, "rfxtrx", {"rfxtrx": {"device": "abcd", "automatic_add": True}},
)
await hass.async_block_till_done()
await hass.async_start()