Minor improvement of zha test (#76993)

This commit is contained in:
Erik Montnemery 2022-08-18 16:52:41 +02:00 committed by GitHub
parent 7a497c1e6e
commit 88a5b90489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,