Added quotes around strings in json response for huemulator

Bumped version number
This commit is contained in:
Stefan Marchal
2018-03-19 22:16:33 +01:00
parent 199fcce549
commit 9a35e47c27
2 changed files with 5 additions and 5 deletions

View File

@@ -570,8 +570,8 @@ public class HueMulator {
if (body.contains("\"effect\"")) {
if (notFirstChange)
responseString = responseString + ",";
responseString = responseString + "{\"success\":{\"/lights/" + lightId + "/state/effect\":"
+ stateChanges.getEffect() + "}}";
responseString = responseString + "{\"success\":{\"/lights/" + lightId + "/state/effect\":\""
+ stateChanges.getEffect() + "\"}}";
if (deviceState != null)
deviceState.setEffect(stateChanges.getEffect());
notFirstChange = true;
@@ -590,8 +590,8 @@ public class HueMulator {
if (body.contains("\"alert\"")) {
if (notFirstChange)
responseString = responseString + ",";
responseString = responseString + "{\"success\":{\"/lights/" + lightId + "/state/alert\":"
+ stateChanges.getAlert() + "}}";
responseString = responseString + "{\"success\":{\"/lights/" + lightId + "/state/alert\":\""
+ stateChanges.getAlert() + "\"}}";
if (deviceState != null)
deviceState.setAlert(stateChanges.getAlert());
notFirstChange = true;