Include port info in the ZHA websocket settings response (#93934)

pull/94158/head
puddly 2023-06-01 13:53:41 -04:00 committed by Paulus Schoutsen
parent 7a6327d7e2
commit 2c43672a8a
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ from typing import TYPE_CHECKING, Any, Literal, NamedTuple, TypeVar, cast
import voluptuous as vol
import zigpy.backups
from zigpy.config import CONF_DEVICE
from zigpy.config.validators import cv_boolean
from zigpy.types.named import EUI64
from zigpy.zcl.clusters.security import IasAce
@ -1136,6 +1137,7 @@ async def websocket_get_network_settings(
msg[ID],
{
"radio_type": async_get_radio_type(hass, zha_gateway.config_entry).name,
"device": zha_gateway.application_controller.config[CONF_DEVICE],
"settings": backup.as_dict(),
},
)

View File

@ -744,6 +744,7 @@ async def test_get_network_settings(
assert msg["success"]
assert "radio_type" in msg["result"]
assert "network_info" in msg["result"]["settings"]
assert "path" in msg["result"]["device"]
async def test_list_network_backups(