mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-16 18:24:36 +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/"
|
||||
+ 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 {
|
||||
|
||||
Reference in New Issue
Block a user