mirror of https://github.com/arendst/Tasmota.git
Merge pull request #4153 from ascillato/patch-1
Fix Alexa for Core 2.5.0 (also backwards compatible)
This commit is contained in:
commit
9c054f107e
|
@ -660,11 +660,11 @@ void HueLights(String *path)
|
|||
if ((device < 1) || (device > maxhue)) {
|
||||
device = 1;
|
||||
}
|
||||
if (1 == WebServer->args()) {
|
||||
if (WebServer->args()) {
|
||||
response = "[";
|
||||
|
||||
StaticJsonBuffer<400> jsonBuffer;
|
||||
JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg(0));
|
||||
JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg((WebServer->args())-1));
|
||||
if (hue_json.containsKey("on")) {
|
||||
|
||||
response += FPSTR(HUE_LIGHT_RESPONSE_JSON);
|
||||
|
|
Loading…
Reference in New Issue