Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbungle64 committed Feb 27, 2020
1 parent 7a7511a commit d4ae306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,13 @@ class EcovacsDeebot extends utils.Adapter {
const date = this.formatDate(new Date(), 'TT.MM.JJJJ SS:mm:ss');
this.setState('info.cleanstatus', status, true);
if (isValidCleanStatus(status)) {
this.setState('info.error', '', true);
if (status === 'stop') {
this.setState('info.deviceStatus', 'stopped', true);
} else if (status === 'pause') {
this.setState('info.deviceStatus', 'paused', true);
} else {
this.setState('info.deviceStatus', 'cleaning', true);
this.setState('info.error', '', true);
}
this.setState('history.timestampOfLastStartCleaning', timestamp, true);
this.setState('history.dateOfLastStartCleaning', date, true);
Expand Down

0 comments on commit d4ae306

Please sign in to comment.