Don't start the alarm immediately after a restart
This commit is contained in:
parent
e5141d528e
commit
3d84bb6435
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ type NightLightStateMachine private (maybeState: NightLightState option) =
|
|||
let maybePreviousPartOfDay =
|
||||
maybeCurrentState |> Option.map _.Time |> Option.map getPartOfDay
|
||||
|
||||
maybePreviousPartOfDay <> Some Day && newPartOfDay = Day
|
||||
maybePreviousPartOfDay = Some Night && newPartOfDay = Day
|
||||
|
||||
newDayStarted
|
||||
|| maybeCurrentState |> Option.map _.Alarm |> Option.defaultValue false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue