"Set States" API does not require a selector

This commit is contained in:
Ryan Cavicchioni 2021-04-28 13:45:42 +00:00
parent 4c1678b62c
commit c6b538380c
Signed by: chill9
GPG Key ID: 877EEDAF9245103D
2 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ func (c *Client) breathe(selector string, breathe Breathe) (*Response, error) {
return resp, nil
}
func (c *Client) setStates(selector string, states States) (*Response, error) {
func (c *Client) setStates(states States) (*Response, error) {
var (
err error
j []byte

View File

@ -156,14 +156,14 @@ func (c *Client) FastSetState(selector string, state State) (*LifxResponse, erro
return c.SetState(selector, state)
}
func (c *Client) SetStates(selector string, states States) (*LifxResponse, error) {
func (c *Client) SetStates(states States) (*LifxResponse, error) {
var (
err error
s *LifxResponse
resp *Response
)
if resp, err = c.setStates(selector, states); err != nil {
if resp, err = c.setStates(states); err != nil {
return nil, err
}
defer resp.Body.Close()