Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sagemcom_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ async def get_values_by_xpaths(self, xpaths, options: dict | None = None) -> dic
{
"id": i,
"method": "getValue",
"xpath": urllib.parse.quote(xpath),
"xpath": urllib.parse.quote(xpath, "/=[]'"),
"options": options if options else {},
}
for i, xpath in enumerate(xpaths.values())
Expand Down Expand Up @@ -481,7 +481,7 @@ async def set_value_by_xpath(
actions = {
"id": 0,
"method": "setValue",
"xpath": urllib.parse.quote(xpath),
"xpath": urllib.parse.quote(xpath, "/=[]'"),
"parameters": {"value": str(value)},
"options": options if options else {},
}
Expand Down
Loading