Hard code the lights controlled by the remote
This commit is contained in:
parent
50c8a413a6
commit
3855439d82
5 changed files with 40 additions and 37 deletions
|
|
@ -9,27 +9,30 @@ type ArbitraryLight =
|
|||
type ArbitraryNonRemotelyControlledLight =
|
||||
static member Light() =
|
||||
lights
|
||||
|> Seq.filter (fun light -> (lightProps light).ControlledWithRemote.IsNonRemote)
|
||||
|> Seq.filter (fun light ->
|
||||
light = VardagsrumVagglampa
|
||||
|| light = VardagsrumGolvlampa
|
||||
|| light = BadrumTaklampa)
|
||||
|> Gen.elements
|
||||
|> Arb.fromGen
|
||||
|
||||
type ArbitraryLeftRemotelyControlledLight =
|
||||
static member Light() =
|
||||
lights
|
||||
|> Seq.filter (fun light -> (lightProps light).ControlledWithRemote.IsRemoteLeft)
|
||||
|> Seq.filter (fun light -> light = SovrumNattduksbordlampa)
|
||||
|> Gen.elements
|
||||
|> Arb.fromGen
|
||||
|
||||
type ArbitraryRightRemotelyControlledLight =
|
||||
static member Light() =
|
||||
lights
|
||||
|> Seq.filter (fun light -> (lightProps light).ControlledWithRemote.IsRemoteRight)
|
||||
|> Seq.filter (fun light -> light = VardagsrumFonsterlampa)
|
||||
|> Gen.elements
|
||||
|> Arb.fromGen
|
||||
|
||||
type ArbitraryRemotelyControlledLight =
|
||||
static member Light() =
|
||||
lights
|
||||
|> Seq.filter (fun light -> (lightProps light).ControlledWithRemote.IsNonRemote |> not)
|
||||
|> Seq.filter (fun light -> light = VardagsrumFonsterlampa || light = SovrumNattduksbordlampa)
|
||||
|> Gen.elements
|
||||
|> Arb.fromGen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue