aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Guarino <Collinux@users.noreply.github.com>2017-03-17 20:38:51 -0400
committerGitHub <noreply@github.com>2017-03-17 20:38:51 -0400
commit4f55f62ea95532c37630cd160164b823c200fb8c (patch)
tree40b2c361058d013877d5b143892e572804f30056
parent3e81062ffd8176266823483e111bd44bce449505 (diff)
parent21d7ece211db34c6890dffa1658037ee51709e33 (diff)
Merge pull request #11 from EvanPurkhiser/fix-action-types
Correct some Action fields to be pointers
-rw-r--r--group.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/group.go b/group.go
index f85294e..db878d6 100644
--- a/group.go
+++ b/group.go
@@ -20,9 +20,9 @@ type Action struct {
Colormode string `json:"colormode,omitempty"`
Ct int `json:"ct,omitempty"`
Effect string `json:"effect,omitempty"`
- Hue int `json:"hue,omitempty"`
- On bool `json:"on,omitempty"`
- Sat int `json:"sat,omitempty"`
+ Hue *int `json:"hue,omitempty"`
+ On *bool `json:"on,omitempty"`
+ Sat *int `json:"sat,omitempty"`
XY []float64 `json:"xy,omitempty"`
Scene string `json:"scene,omitempty"`
}