Skip to content

Commit

Permalink
fix issue #3 wrong id passed in url
Browse files Browse the repository at this point in the history
  • Loading branch information
mch1307 committed Nov 6, 2017
1 parent 9a2b985 commit 33651d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/jeedom.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func UpdateJeedomState(item types.NHCItem) error {
qry := req.URL.Query()
qry.Add("apikey", config.Conf.JeedomConfig.APIKey)
qry.Add("type", "cmd")
qry.Add("id", item.JeedomID)
qry.Add("id", item.JeedomUpdState)
qry.Add(item.JeedomSubType, strconv.Itoa(item.State))
req.URL.RawQuery = qry.Encode()
log.Debug("jeedom upd url: ", req.URL.String())
Expand Down

0 comments on commit 33651d3

Please sign in to comment.