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

Change User LED to System Health LED (#4586)

This commit is contained in:
Mike Degatano
2023-09-26 14:54:41 -04:00
committed by GitHub
parent e11ff64b15
commit 9322b68d47
3 changed files with 12 additions and 7 deletions

View File

@@ -177,7 +177,7 @@ async def test_api_board_green_info(
result = await resp.json()
assert result["data"]["activity_led"] is True
assert result["data"]["power_led"] is True
assert result["data"]["user_led"] is True
assert result["data"]["system_health_led"] is True
assert (await api_client.get("/os/boards/yellow")).status == 400
assert (await api_client.get("/os/boards/supervised")).status == 400
@@ -203,7 +203,11 @@ async def test_api_board_green_options(
with patch.object(BoardProxy, "save_data") as save_data:
resp = await api_client.post(
"/os/boards/green",
json={"activity_led": False, "power_led": False, "user_led": False},
json={
"activity_led": False,
"power_led": False,
"system_health_led": False,
},
)
assert resp.status == 200
save_data.assert_called_once()