Skip to content

Commit 8a0b22b

Browse files
committed
Smartglass API: Add params for command_shell_install_packages
1 parent 148f4f3 commit 8a0b22b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

smartglass_api.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
import httpx
33
import uuid
4-
from typing import Optional, Union
4+
from typing import Optional, Union, List
55

66
import ms_cv
77
from auth.models import SisuAuthorizationResponse, XSTSResponse
@@ -320,9 +320,11 @@ async def command_shell_move_packages(
320320

321321
async def command_shell_install_packages(
322322
self,
323-
console_live_id: str
323+
console_live_id: str,
324+
big_cat_ids: List[str]
324325
) -> CommandResponse:
325-
return await self._send_command(console_live_id, "Shell", "InstallPackages")
326+
params = [{"bigCatIdList": ','.join(big_cat_ids)}]
327+
return await self._send_command(console_live_id, "Shell", "InstallPackages", params)
326328

327329
async def command_shell_uninstall_package(
328330
self,

0 commit comments

Comments
 (0)