mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Minor improvement of zha test (#76993)
This commit is contained in:
parent
7a497c1e6e
commit
88a5b90489
@ -775,6 +775,7 @@ async def test_migration_ti_cc_to_znp(old_type, new_type, hass, config_entry):
|
|||||||
async def test_hardware_not_onboarded(hass):
|
async def test_hardware_not_onboarded(hass):
|
||||||
"""Test hardware flow."""
|
"""Test hardware flow."""
|
||||||
data = {
|
data = {
|
||||||
|
"name": "Yellow",
|
||||||
"radio_type": "efr32",
|
"radio_type": "efr32",
|
||||||
"port": {
|
"port": {
|
||||||
"path": "/dev/ttyAMA1",
|
"path": "/dev/ttyAMA1",
|
||||||
@ -790,7 +791,7 @@ async def test_hardware_not_onboarded(hass):
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert result["type"] == FlowResultType.CREATE_ENTRY
|
assert result["type"] == FlowResultType.CREATE_ENTRY
|
||||||
assert result["title"] == "/dev/ttyAMA1"
|
assert result["title"] == "Yellow"
|
||||||
assert result["data"] == {
|
assert result["data"] == {
|
||||||
CONF_DEVICE: {
|
CONF_DEVICE: {
|
||||||
CONF_BAUDRATE: 115200,
|
CONF_BAUDRATE: 115200,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user