Fix HomeGenie response review for errors. Updated Readme, removed the row index from the devices tab

This commit is contained in:
BWS Systems
2019-06-27 10:55:40 -05:00
parent fcb31b8f76
commit 4b0152060f
4 changed files with 47 additions and 54 deletions

View File

@@ -39,7 +39,7 @@ public class HomeGenieInstance {
String theData = httpClient.doHttpRequest(aUrl, HttpPut.METHOD_NAME, "application/json", null, httpClient.addBasicAuthHeader(null, homegenieIP));
log.debug("call Command return is: <<<{}>>>", theData);
if (!theData.contains("OK"))
if (theData.toLowerCase().contains("error"))
return false;
return true;
}