switch: id/port api

This commit is contained in:
Maxim Devaev
2025-05-08 20:26:36 +03:00
parent 32425c1903
commit 8f19d40566
4 changed files with 35 additions and 19 deletions

View File

@@ -147,7 +147,7 @@ class _SwitchApiPart(_BaseApiPart):
async with session.post("/switch/set_active_next") as resp:
htclient.raise_not_200(resp)
async def set_active(self, port: int) -> None:
async def set_active(self, port: float) -> None:
session = self._ensure_http_session()
async with session.post(
url="/switch/set_active",