Bug: The method

com.bwssystems.HABridge.plugins.hue.HueInfo.changeState(HueDeviceIdentifier,
String, String) ignores the return value of
String.contains(CharSequence)
This commit is contained in:
gaudryc
2019-01-06 20:03:24 +01:00
parent 92ab02145e
commit df04d542db

View File

@@ -161,8 +161,8 @@ public class HueInfo {
+ "\",\"description\": \"Error on calling HUE to change device state\", \"parameter\": \"/lights/"
+ lightId + "state\"}}]";
} else if (responseString.contains("[{\"error\":")) {
if(responseString.contains("unauthorized user")) {
}
// if(responseString.contains("unauthorized user")) {
// }
log.warn("Error occurred when calling Hue Passthru: " + responseString);
}
} else {