Add konnected multi output (#33412)
* add test to for importing multiple output settings * provide option to set multiple output states * tweaks after testing * Update homeassistant/components/konnected/config_flow.py Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
1 parent
d59209ff47
commit
0e6b905cdf
5 files changed
+143
-15
No files matched your search
@@ -124,7 +124,7 @@ async def test_config_schema(hass):
|
||||
}
|
||||
}
|
||||
|
||||
# check pin to zone
|
||||
# check pin to zone and multiple output
|
||||
config = {
|
||||
konnected.DOMAIN: {
|
||||
konnected.CONF_ACCESS_TOKEN: "abcdefgh",
|
||||
@@ -135,6 +135,22 @@ async def test_config_schema(hass):
|
||||
{"pin": 2, "type": "door"},
|
||||
{"zone": 1, "type": "door"},
|
||||
],
|
||||
"switches": [
|
||||
{
|
||||
"zone": 3,
|
||||
"name": "Beep Beep",
|
||||
"momentary": 65,
|
||||
"pause": 55,
|
||||
"repeat": 4,
|
||||
},
|
||||
{
|
||||
"zone": 3,
|
||||
"name": "Warning",
|
||||
"momentary": 100,
|
||||
"pause": 100,
|
||||
"repeat": -1,
|
||||
},
|
||||
],
|
||||
}
|
||||
],
|
||||
}
|
||||
@@ -153,7 +169,7 @@ async def test_config_schema(hass):
|
||||
"11": "Disabled",
|
||||
"12": "Disabled",
|
||||
"2": "Binary Sensor",
|
||||
"3": "Disabled",
|
||||
"3": "Switchable Output",
|
||||
"4": "Disabled",
|
||||
"5": "Disabled",
|
||||
"6": "Disabled",
|
||||
@@ -169,6 +185,24 @@ async def test_config_schema(hass):
|
||||
{"inverse": False, "type": "door", "zone": "2"},
|
||||
{"inverse": False, "type": "door", "zone": "1"},
|
||||
],
|
||||
"switches": [
|
||||
{
|
||||
"zone": "3",
|
||||
"activation": "high",
|
||||
"name": "Beep Beep",
|
||||
"momentary": 65,
|
||||
"pause": 55,
|
||||
"repeat": 4,
|
||||
},
|
||||
{
|
||||
"zone": "3",
|
||||
"activation": "high",
|
||||
"name": "Warning",
|
||||
"momentary": 100,
|
||||
"pause": 100,
|
||||
"repeat": -1,
|
||||
},
|
||||
],
|
||||
},
|
||||
"id": "aabbccddeeff",
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user