Parse color commands in FakeHome

This commit is contained in:
Sven van Heugten 2026-01-04 10:42:47 +01:00
parent 6baf725765
commit 7125fee28e
2 changed files with 26 additions and 3 deletions

View file

@ -11,6 +11,6 @@ type NightLightTests() =
fakeHome.LightStates
|> Seq.choose (fun (_, state) ->
match state with
| On brightness -> Some brightness
| On(brightness, _) -> Some brightness
| Off -> None)
|> Seq.forall (fun brightness -> brightness < 255uy)