Remove rfxtrx signal repetition (#67675)
This commit is contained in:
parent
6c41786be4
commit
e8c05298ba
15 changed files with 43 additions and 165 deletions
|
@ -401,7 +401,7 @@ async def test_options_add_device(hass):
|
|||
assert result["step_id"] == "set_device_options"
|
||||
|
||||
result = await hass.config_entries.options.async_configure(
|
||||
result["flow_id"], user_input={"signal_repetitions": 5}
|
||||
result["flow_id"], user_input={}
|
||||
)
|
||||
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
|
||||
|
@ -411,7 +411,6 @@ async def test_options_add_device(hass):
|
|||
assert entry.data["automatic_add"]
|
||||
|
||||
assert entry.data["devices"]["0b1100cd0213c7f230010f71"]
|
||||
assert entry.data["devices"]["0b1100cd0213c7f230010f71"]["signal_repetitions"] == 5
|
||||
assert "delay_off" not in entry.data["devices"]["0b1100cd0213c7f230010f71"]
|
||||
|
||||
state = hass.states.get("binary_sensor.ac_213c7f2_48")
|
||||
|
@ -431,7 +430,7 @@ async def test_options_add_duplicate_device(hass):
|
|||
"device": "/dev/tty123",
|
||||
"debug": False,
|
||||
"automatic_add": False,
|
||||
"devices": {"0b1100cd0213c7f230010f71": {"signal_repetitions": 1}},
|
||||
"devices": {"0b1100cd0213c7f230010f71": {}},
|
||||
},
|
||||
unique_id=DOMAIN,
|
||||
)
|
||||
|
@ -626,11 +625,9 @@ async def test_options_replace_control_device(hass):
|
|||
"devices": {
|
||||
"0b1100100118cdea02010f70": {
|
||||
"device_id": ["11", "0", "118cdea:2"],
|
||||
"signal_repetitions": 1,
|
||||
},
|
||||
"0b1100101118cdea02010f70": {
|
||||
"device_id": ["11", "0", "1118cdea:2"],
|
||||
"signal_repetitions": 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -751,7 +748,6 @@ async def test_options_add_and_configure_device(hass):
|
|||
result = await hass.config_entries.options.async_configure(
|
||||
result["flow_id"],
|
||||
user_input={
|
||||
"signal_repetitions": 5,
|
||||
"data_bits": 4,
|
||||
"off_delay": "abcdef",
|
||||
"command_on": "xyz",
|
||||
|
@ -769,7 +765,6 @@ async def test_options_add_and_configure_device(hass):
|
|||
result = await hass.config_entries.options.async_configure(
|
||||
result["flow_id"],
|
||||
user_input={
|
||||
"signal_repetitions": 5,
|
||||
"data_bits": 4,
|
||||
"command_on": "0xE",
|
||||
"command_off": "0x7",
|
||||
|
@ -784,7 +779,6 @@ async def test_options_add_and_configure_device(hass):
|
|||
assert entry.data["automatic_add"]
|
||||
|
||||
assert entry.data["devices"]["0913000022670e013970"]
|
||||
assert entry.data["devices"]["0913000022670e013970"]["signal_repetitions"] == 5
|
||||
assert entry.data["devices"]["0913000022670e013970"]["off_delay"] == 9
|
||||
|
||||
state = hass.states.get("binary_sensor.pt2262_22670e")
|
||||
|
@ -816,7 +810,6 @@ async def test_options_add_and_configure_device(hass):
|
|||
result = await hass.config_entries.options.async_configure(
|
||||
result["flow_id"],
|
||||
user_input={
|
||||
"signal_repetitions": 5,
|
||||
"data_bits": 4,
|
||||
"command_on": "0xE",
|
||||
"command_off": "0x7",
|
||||
|
@ -828,7 +821,6 @@ async def test_options_add_and_configure_device(hass):
|
|||
await hass.async_block_till_done()
|
||||
|
||||
assert entry.data["devices"]["0913000022670e013970"]
|
||||
assert entry.data["devices"]["0913000022670e013970"]["signal_repetitions"] == 5
|
||||
assert "delay_off" not in entry.data["devices"]["0913000022670e013970"]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue