mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-16 18:24:36 +00:00
Added quotes around strings in json response for huemulator
Bumped version number
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
||||
|
||||
<groupId>com.bwssystems.HABridge</groupId>
|
||||
<artifactId>ha-bridge</artifactId>
|
||||
<version>5.2.1</version>
|
||||
<version>5.2.2</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>HA Bridge</name>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user