Remove rfxtrx signal repetition (#67675)
This commit is contained in:
parent
6c41786be4
commit
e8c05298ba
15 changed files with 43 additions and 165 deletions
|
@ -12,9 +12,7 @@ from tests.components.rfxtrx.conftest import create_rfx_test_cfg
|
|||
|
||||
async def test_one_cover(hass, rfxtrx):
|
||||
"""Test with 1 cover."""
|
||||
entry_data = create_rfx_test_cfg(
|
||||
devices={"0b1400cd0213c7f20d010f51": {"signal_repetitions": 1}}
|
||||
)
|
||||
entry_data = create_rfx_test_cfg(devices={"0b1400cd0213c7f20d010f51": {}})
|
||||
mock_entry = MockConfigEntry(domain="rfxtrx", unique_id=DOMAIN, data=entry_data)
|
||||
|
||||
mock_entry.add_to_hass(hass)
|
||||
|
@ -61,9 +59,7 @@ async def test_state_restore(hass, rfxtrx, state):
|
|||
|
||||
mock_restore_cache(hass, [State(entity_id, state)])
|
||||
|
||||
entry_data = create_rfx_test_cfg(
|
||||
devices={"0b1400cd0213c7f20d010f51": {"signal_repetitions": 1}}
|
||||
)
|
||||
entry_data = create_rfx_test_cfg(devices={"0b1400cd0213c7f20d010f51": {}})
|
||||
mock_entry = MockConfigEntry(domain="rfxtrx", unique_id=DOMAIN, data=entry_data)
|
||||
|
||||
mock_entry.add_to_hass(hass)
|
||||
|
@ -78,9 +74,9 @@ async def test_several_covers(hass, rfxtrx):
|
|||
"""Test with 3 covers."""
|
||||
entry_data = create_rfx_test_cfg(
|
||||
devices={
|
||||
"0b1400cd0213c7f20d010f51": {"signal_repetitions": 1},
|
||||
"0A1400ADF394AB010D0060": {"signal_repetitions": 1},
|
||||
"09190000009ba8010100": {"signal_repetitions": 1},
|
||||
"0b1400cd0213c7f20d010f51": {},
|
||||
"0A1400ADF394AB010D0060": {},
|
||||
"09190000009ba8010100": {},
|
||||
}
|
||||
)
|
||||
mock_entry = MockConfigEntry(domain="rfxtrx", unique_id=DOMAIN, data=entry_data)
|
||||
|
@ -125,8 +121,8 @@ async def test_duplicate_cover(hass, rfxtrx):
|
|||
"""Test with 2 duplicate covers."""
|
||||
entry_data = create_rfx_test_cfg(
|
||||
devices={
|
||||
"0b1400cd0213c7f20d010f51": {"signal_repetitions": 1},
|
||||
"0b1400cd0213c7f20d010f50": {"signal_repetitions": 1},
|
||||
"0b1400cd0213c7f20d010f51": {},
|
||||
"0b1400cd0213c7f20d010f50": {},
|
||||
}
|
||||
)
|
||||
mock_entry = MockConfigEntry(domain="rfxtrx", unique_id=DOMAIN, data=entry_data)
|
||||
|
@ -147,11 +143,10 @@ async def test_rfy_cover(hass, rfxtrx):
|
|||
entry_data = create_rfx_test_cfg(
|
||||
devices={
|
||||
"071a000001020301": {
|
||||
"signal_repetitions": 1,
|
||||
"venetian_blind_mode": "Unknown",
|
||||
},
|
||||
"071a000001020302": {"signal_repetitions": 1, "venetian_blind_mode": "US"},
|
||||
"071a000001020303": {"signal_repetitions": 1, "venetian_blind_mode": "EU"},
|
||||
"071a000001020302": {"venetian_blind_mode": "US"},
|
||||
"071a000001020303": {"venetian_blind_mode": "EU"},
|
||||
}
|
||||
)
|
||||
mock_entry = MockConfigEntry(domain="rfxtrx", unique_id=DOMAIN, data=entry_data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue