Skip to content

Commit

Permalink
fix(miio): Fix Valetudo crashing due to missing onMessage function
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Mar 8, 2021
1 parent 59aaee3 commit 4512fe0
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 @@ -41,7 +41,7 @@ class MiioValetudoRobot extends ValetudoRobot {
return new MiioSocket({
socket: socket,
token: this.localSecret,
onMessage: null,
onMessage: () => {},
deviceId: undefined,
rinfo: {address: this.ip, port: MiioSocket.PORT},
timeout: undefined,
Expand Down

0 comments on commit 4512fe0

Please sign in to comment.