mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Include port info in the ZHA websocket settings response (#93934)
This commit is contained in:
parent
457bc4571d
commit
cc47736d20
@ -7,6 +7,7 @@ from typing import TYPE_CHECKING, Any, Literal, NamedTuple, TypeVar, cast
|
|||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
import zigpy.backups
|
import zigpy.backups
|
||||||
|
from zigpy.config import CONF_DEVICE
|
||||||
from zigpy.config.validators import cv_boolean
|
from zigpy.config.validators import cv_boolean
|
||||||
from zigpy.types.named import EUI64
|
from zigpy.types.named import EUI64
|
||||||
from zigpy.zcl.clusters.security import IasAce
|
from zigpy.zcl.clusters.security import IasAce
|
||||||
@ -1136,6 +1137,7 @@ async def websocket_get_network_settings(
|
|||||||
msg[ID],
|
msg[ID],
|
||||||
{
|
{
|
||||||
"radio_type": async_get_radio_type(hass, zha_gateway.config_entry).name,
|
"radio_type": async_get_radio_type(hass, zha_gateway.config_entry).name,
|
||||||
|
"device": zha_gateway.application_controller.config[CONF_DEVICE],
|
||||||
"settings": backup.as_dict(),
|
"settings": backup.as_dict(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -744,6 +744,7 @@ async def test_get_network_settings(
|
|||||||
assert msg["success"]
|
assert msg["success"]
|
||||||
assert "radio_type" in msg["result"]
|
assert "radio_type" in msg["result"]
|
||||||
assert "network_info" in msg["result"]["settings"]
|
assert "network_info" in msg["result"]["settings"]
|
||||||
|
assert "path" in msg["result"]["device"]
|
||||||
|
|
||||||
|
|
||||||
async def test_list_network_backups(
|
async def test_list_network_backups(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user