Skip to content

Commit

Permalink
Fix: correct a regression related to occupancy sensor logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjdhjd committed Apr 14, 2024
1 parent 610433e commit db8d306
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ratgdo-device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,11 @@ export class RatgdoAccessory {
this.platform.mqtt?.publish(this, "motion", this.status.motion.toString());
}, RATGDO_MOTION_DURATION * 1000);

// If we don't have occupancy sensor support configured, we're done.
if(!this.hints.motionOccupancySensor) {

break;
}

// Kill any inflight occupancy sensor.
if(this.motionOccupancyTimer) {
Expand Down

0 comments on commit db8d306

Please sign in to comment.