Skip to content

Commit

Permalink
Release 2.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Feb 17, 2018
1 parent 48b67a9 commit 32906cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mi-robot/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,12 @@ class MiRobotDevice extends Homey.Device {
if (this.miio.property('state') == 'charging') {
var onoff = false;
var state = 'charging';
} else if (this.miio.property('state') == 'docking' || this.miio.property('state') == 'full' || this.miio.property('state') == 'returning') {
} else if (this.miio.property('state') == 'docking' || this.miio.property('state') == 'full' || this.miio.property('state') == 'returning' || this.miio.property('state') == 'waiting') {
var onoff = false;
var state = 'docked';
} else if (this.miio.property('state') == 'cleaning' || this.miio.property('state') == 'zone-cleaning') {
var onoff = true;
var state = 'cleaning';
} else if (this.miio.property('state') == 'waiting' || this.miio.property('state') == 'paused') {
var onoff = false;
var state = 'stopped';
} else if (this.miio.property('state') == 'spot-cleaning') {
var onoff = true;
var state = 'spot_cleaning';
Expand Down

0 comments on commit 32906cd

Please sign in to comment.