Skip to content

Problems on updating locations using FROST-Python client #1664

Closed Answered by mikedolx
mikedolx asked this question in Q&A
Discussion options

You must be logged in to vote

Nevermind, just found the solution using jsonpatch:

import jsonpatch
...
patch = jsonpatch.JsonPatch([{ "op": "replace", "path": "/description", "value": new_description }])
remote_frost.patch(entity=location, patches=patch)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mikedolx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant