diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-04 23:52:11 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-04 23:52:11 -0500 |
commit | 666b312e0011459f471f89257c5dd8e3e495ee95 (patch) | |
tree | 578c4fa1b6cfb9edebb1ad3753bea07913c533c7 /light_test.go | |
parent | a0a8f16f81b36bd700a3d08780ac6e67a9dfc8a0 (diff) |
Added json bindings for LightState struct.
Diffstat (limited to 'light_test.go')
-rw-r--r-- | light_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/light_test.go b/light_test.go index 6da677d..479111b 100644 --- a/light_test.go +++ b/light_test.go @@ -19,7 +19,7 @@ func TestSetLightState(t *testing.T) { fmt.Println("\nTESTING LIGHT STATE:\n\n") bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207") lights, _ := GetAllLights(bridge) - fmt.Println("\nUNIQUE ID: ", lights[0].UniqueID) - newState := LightState{On: false} + newState := LightState{On: true} + fmt.Println("\n\nSTATE: ", newState) SetLightState(bridge, lights[1].Index, newState) } |