diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-24 19:33:35 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-24 19:33:35 -0500 |
commit | 1ed1083ed0408bf1e7eae5516c36038c75154b3f (patch) | |
tree | 5cc507f19f64301146bc6bf5b06b46f12bf5e351 /light_test.go | |
parent | dbf10ecf3bb19d4b335767e0b9dad0f9e94198e6 (diff) |
Implemented Light.SetBrightness as a shortcut to using a SetState struct.
Diffstat (limited to 'light_test.go')
-rw-r--r-- | light_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/light_test.go b/light_test.go index 0d486cd..ecc5460 100644 --- a/light_test.go +++ b/light_test.go @@ -21,6 +21,7 @@ func TestSetLightState(t *testing.T) { selectedLight, _ := bridge.GetLightByIndex(7) selectedLight.On() + selectedLight.SetBrightness(100) time.Sleep(time.Second) selectedLight.Off() time.Sleep(time.Second) |