mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-18 08:13:23 +00:00
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:
@@ -161,8 +161,8 @@ public class HueInfo {
|
|||||||
+ "\",\"description\": \"Error on calling HUE to change device state\", \"parameter\": \"/lights/"
|
+ "\",\"description\": \"Error on calling HUE to change device state\", \"parameter\": \"/lights/"
|
||||||
+ lightId + "state\"}}]";
|
+ lightId + "state\"}}]";
|
||||||
} else if (responseString.contains("[{\"error\":")) {
|
} else if (responseString.contains("[{\"error\":")) {
|
||||||
if(responseString.contains("unauthorized user")) {
|
// if(responseString.contains("unauthorized user")) {
|
||||||
}
|
// }
|
||||||
log.warn("Error occurred when calling Hue Passthru: " + responseString);
|
log.warn("Error occurred when calling Hue Passthru: " + responseString);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user