1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Add network reload to api (#2319)

This commit is contained in:
Pascal Vizeli
2020-12-01 14:03:59 +01:00
committed by GitHub
parent 06e10fdd3c
commit e2a473baa3
3 changed files with 16 additions and 1 deletions

View File

@@ -185,3 +185,12 @@ async def test_api_network_wireless_scan(api_client):
ap["ssid"] for ap in result["data"]["accesspoints"]
]
assert [47, 63] == [ap["signal"] for ap in result["data"]["accesspoints"]]
@pytest.mark.asyncio
async def test_api_network_reload(api_client, coresys):
"""Test network manager reload api."""
resp = await api_client.post("/network/reload")
result = await resp.json()
assert result["result"] == "ok"