Add options flow to enable multiprotocol support on sky connect (#82525)
This commit is contained in:
parent
16fc2972d3
commit
b7652c78ee
23 changed files with 962 additions and 95 deletions
|
@ -61,13 +61,15 @@ class TestOptionsFlow(silabs_multiprotocol_addon.OptionsFlowHandler):
|
|||
being migrated.
|
||||
"""
|
||||
return {
|
||||
"name": "Test",
|
||||
"port": {
|
||||
"path": "/dev/ttyTEST123",
|
||||
"baudrate": 115200,
|
||||
"flow_control": "hardware",
|
||||
},
|
||||
"radio_type": "efr32",
|
||||
"hw": {
|
||||
"name": "Test",
|
||||
"port": {
|
||||
"path": "/dev/ttyTEST123",
|
||||
"baudrate": 115200,
|
||||
"flow_control": "hardware",
|
||||
},
|
||||
"radio_type": "efr32",
|
||||
}
|
||||
}
|
||||
|
||||
def _zha_name(self) -> str:
|
||||
|
@ -223,8 +225,8 @@ async def test_option_flow_install_multi_pan_addon_zha(
|
|||
assert zha_config_entry.data == {
|
||||
"device": {
|
||||
"path": "socket://core-silabs-multiprotocol:9999",
|
||||
"baudrate": 115200,
|
||||
"flow_control": "hardware",
|
||||
"baudrate": 57600, # ZHA default
|
||||
"flow_control": "software", # ZHA default
|
||||
},
|
||||
"radio_type": "ezsp",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue