Merge pull request #4191 from Jason2866/patch-3

Reverting Alexa fix
This commit is contained in:
Theo Arends 2018-10-28 11:34:19 +01:00 committed by GitHub
commit dfea9576ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -664,7 +664,7 @@ void HueLights(String *path)
response = "[";
StaticJsonBuffer<400> jsonBuffer;
JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg("1"));
JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg((WebServer->args())-1));
if (hue_json.containsKey("on")) {
response += FPSTR(HUE_LIGHT_RESPONSE_JSON);