Skip to content

Commit

Permalink
fix(miio): Fix broken development token refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Mar 11, 2021
1 parent 3630fa3 commit 9217f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/robots/MiioValetudoRobot.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class MiioValetudoRobot extends ValetudoRobot {
}

if (localSecret && localSecret.length >= 16) {
return localSecret.slice(0, 16);
return Buffer.from(localSecret.toString().slice(0, 16));
}

Logger.debug("Invalid localSecret with length " + localSecret.length);
Expand Down

0 comments on commit 9217f70

Please sign in to comment.