Skip to content

Commit

Permalink
Merge pull request #24 from m-ruhl/fix_filter_maintenance
Browse files Browse the repository at this point in the history
Fix filterMaintenance service was not published
  • Loading branch information
iRayanKhan authored Feb 1, 2021
2 parents b99274b + 40feb23 commit 53a830c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ roombaAccessory.prototype = {
this.filterMaintenance
.getCharacteristic(Characteristic.FilterChangeIndication)
.on("get", this.getFilterStatus.bind(this));
services.push(this.filterMaintenance);

if (this.showDockAsContactSensor) {
this.dockService
Expand Down Expand Up @@ -437,7 +438,7 @@ roombaAccessory.prototype = {
this.batteryService
.getCharacteristic(Characteristic.StatusLowBattery)
.updateValue(status.batteryStatus);
this.filterMaintenance
this.filterMaintenance
.getCharacteristic(Characteristic.FilterChangeIndication)
.updateValue(status.binStatus);
if (this.showDockAsContactSensor) {
Expand Down

0 comments on commit 53a830c

Please sign in to comment.