Remove rfxtrx signal repetition (#67675)

This commit is contained in:
Joakim Plate 2022-03-06 10:29:20 +01:00 committed by GitHub
parent 6c41786be4
commit e8c05298ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 43 additions and 165 deletions

View file

@ -94,7 +94,7 @@ def _get_expected_actions(data):
)
async def test_get_actions(hass, device_reg: DeviceRegistry, device, expected):
"""Test we get the expected actions from a rfxtrx."""
await setup_entry(hass, {device.code: {"signal_repetitions": 1}})
await setup_entry(hass, {device.code: {}})
device_entry = device_reg.async_get_device(device.device_identifiers, set())
assert device_entry
@ -137,7 +137,7 @@ async def test_action(
):
"""Test for actions."""
await setup_entry(hass, {device.code: {"signal_repetitions": 1}})
await setup_entry(hass, {device.code: {}})
device_entry = device_reg.async_get_device(device.device_identifiers, set())
assert device_entry
@ -172,7 +172,7 @@ async def test_invalid_action(hass, device_reg: DeviceRegistry):
"""Test for invalid actions."""
device = DEVICE_LIGHTING_1
await setup_entry(hass, {device.code: {"signal_repetitions": 1}})
await setup_entry(hass, {device.code: {}})
device_identifers: Any = device.device_identifiers
device_entry = device_reg.async_get_device(device_identifers, set())