Skip to content

Commit

Permalink
Documentation update: settings precedence (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed Apr 26, 2024
1 parent 8681f23 commit e4d63c2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ private Flux<Map.Entry<String, Map.Entry<SchedulePeriod, ZoneSettings>>> applySc

logger.trace("{}: matched time={} period={}", zoneName, now, period);

// VT: FIXME: https://github.com/home-climate-control/dz/issues/319
// After that is fixed, the precedence will be:
//
// 1. Local settings change first.
// 2. Changed event settings will NOT be applied upon change, however, "return to schedule" will apply new, changed, settings.

if (same(currentPeriod, period)) {
logger.trace("{}: already at {}", zoneName, period);
return Flux.empty();
Expand Down

0 comments on commit e4d63c2

Please sign in to comment.