Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Astro: Fix applying earliest and latest config on channel (#4061)
Browse files Browse the repository at this point in the history
Fixes #4059

Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
  • Loading branch information
triller-telekom authored and sjsf committed Aug 16, 2017
1 parent 78e66b7 commit 941e3d1
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -138,10 +138,10 @@ public static void scheduleRange(String thingUID, AstroThingHandler astroHandler
Calendar configEnd = applyConfig(end, config);

if (truncatedEquals(configStart, configEnd, SECOND)) {
scheduleEvent(thingUID, astroHandler, start, asList(EVENT_START, EVENT_END), channelId, true);
scheduleEvent(thingUID, astroHandler, configStart, asList(EVENT_START, EVENT_END), channelId, true);
} else {
scheduleEvent(thingUID, astroHandler, start, EVENT_START, channelId, true);
scheduleEvent(thingUID, astroHandler, end, EVENT_END, channelId, true);
scheduleEvent(thingUID, astroHandler, configStart, EVENT_START, channelId, true);
scheduleEvent(thingUID, astroHandler, configEnd, EVENT_END, channelId, true);
}
}

Expand Down

0 comments on commit 941e3d1

Please sign in to comment.