Demonstrate and fix some odd behaviour with some bulbs
This commit is contained in:
parent
10d858817d
commit
c1d9029a73
2 changed files with 12 additions and 6 deletions
|
|
@ -46,6 +46,9 @@ type FakeLight(light: Light) =
|
|||
if hasPower then
|
||||
brightness <- newBrightness
|
||||
|
||||
if light.Bulb = IkeaBulb then
|
||||
state <- true
|
||||
|
||||
member _.SetColor(newColor: Color) =
|
||||
if hasPower then
|
||||
color <- newColor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue