Stop requiring the initial time in NightLightStateMachine

We're only fooling ourselves if we think that it's ready *right* after
construction anyway. After all, the initial state of the lights won't be
updated when the state machine is constructed.
This commit is contained in:
Sven van Heugten 2026-01-04 19:52:09 +01:00
parent db4434cd20
commit 9531dee52b
5 changed files with 31 additions and 19 deletions

View file

@ -17,7 +17,9 @@ type ParseZigbeeEventError =
| InvalidFriendlyNameField
| UnknownType
type ParseEventError = ParseZigbeeEventError of ParseZigbeeEventError
type OnEventReceivedError =
| ParseZigbeeEventError of ParseZigbeeEventError
| TimeIsUnknown
type Room =
| Bathroom