mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
switch: id/port api
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user