Parse color commands in FakeHome
This commit is contained in:
parent
6baf725765
commit
7125fee28e
2 changed files with 26 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue