diff options
Diffstat (limited to 'light.go')
-rw-r--r-- | light.go | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,5 +1,11 @@ -// http://www.developers.meethue.com/documentation/lights-api +/* +* light.go +* GoHue library for Philips Hue +* Copyright (C) 2016 Collin Guarino (Collinux) +* License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html +*/ +// http://www.developers.meethue.com/documentation/lights-api package hue import ( @@ -56,7 +62,10 @@ func (self *Light) SetName(name string) error { body := make(map[string]string) body["name"] = name _, _, err := self.Bridge.Put(uri, body) - return err + if err != nil { + return err + } + return nil } // Light.Off will turn the light source off |