Skip to content

Commit 44d3805

Browse files
committed
occ commands registration: reflected last changes in AppAPI
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent c14d3bd commit 44d3805

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nc_py_api/ex_app/occ_commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def description(self) -> str:
2929
@property
3030
def hidden(self) -> bool:
3131
"""Flag determining ss command hidden or not."""
32-
return self._raw_data["hidden"]
32+
return bool(self._raw_data["hidden"])
3333

3434
@property
3535
def arguments(self) -> dict:
@@ -77,7 +77,7 @@ def register(
7777
"name": name,
7878
"description": description,
7979
"arguments": arguments,
80-
"hidden": hidden,
80+
"hidden": int(hidden),
8181
"options": options,
8282
"usages": usages,
8383
"execute_handler": callback_url,
@@ -125,7 +125,7 @@ async def register(
125125
"name": name,
126126
"description": description,
127127
"arguments": arguments,
128-
"hidden": hidden,
128+
"hidden": int(hidden),
129129
"options": options,
130130
"usages": usages,
131131
"execute_handler": callback_url,

0 commit comments

Comments
 (0)