Skip to content

Commit 30a878b

Browse files
authored
control.js: get all properties returns json
When getting all properties for a device, the result should be valid json so that it can be parsed by other tools
1 parent 79802e1 commit 30a878b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/control.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function get(config, options) {
5151
tuya.disconnect();
5252

5353
if (options.all) {
54-
console.log(properties);
54+
console.log(JSON.stringify(properties));
5555
} else {
5656
console.log(properties.dps[options.dps]);
5757
}

0 commit comments

Comments
 (0)