Skip to content

Commit

Permalink
fixed bug for gw-wiscon#8
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukcyluke committed Mar 7, 2019
1 parent b637146 commit eb63a3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ getPowerState: function(callback, context) {
responseBodyParsed = JSON.parse(responseBody);
} catch (error) {
that.log(error.message);
responseBodyParsed = false;
// should execute ´if (!parsed)´ block below
}
if (responseBodyParsed && responseBodyParsed.powerstate) {
Expand Down

0 comments on commit eb63a3c

Please sign in to comment.