From 32906cdaddba61a57601474ba83a80fc16cab44c Mon Sep 17 00:00:00 2001 From: jghaanstra Date: Sat, 17 Feb 2018 21:37:05 +0100 Subject: [PATCH] Release 2.5.3 --- drivers/mi-robot/device.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mi-robot/device.js b/drivers/mi-robot/device.js index f192478..f978147 100644 --- a/drivers/mi-robot/device.js +++ b/drivers/mi-robot/device.js @@ -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';