Skip to content

Commit

Permalink
fix: wrap singular.live JSON commands in an array
Browse files Browse the repository at this point in the history
This is how the Singular.live API expects them to be formatted. This got accidentally removed when migrating away from `request`.
  • Loading branch information
Alex authored May 27, 2023
1 parent f60ce97 commit cc5b7ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export class SingularLiveDevice extends DeviceWithState<SingularLiveState, Devic

return new Promise<void>((resolve, reject) => {
got
.patch(url, { json: cmd })
.patch(url, { json: [cmd] })
.then((response) => {
if (response.statusCode === 200) {
this.emitDebug(
Expand Down

0 comments on commit cc5b7ec

Please sign in to comment.