Added delete dialog for confirmation. Fixed bug with text in

intensity.byte for vera device tab. Fixed issue with parsing replies for
http requests. Fixed Hue device bulk add. recommit


Fixes #100
Fixes #102
Fixes #104
Fixes #105
This commit is contained in:
Admin
2016-05-04 11:40:33 -05:00
parent 5d1f0ce3b6
commit c773477a43
10 changed files with 157 additions and 40 deletions

View File

@@ -752,8 +752,10 @@ public class HueMulator implements HueErrorStringSet {
response = httpClient.execute(request);
log.debug((httpVerb == null?"GET":httpVerb) + " execute on URL responded: " + response.getStatusLine().getStatusCode());
if(response.getStatusLine().getStatusCode() >= 200 && response.getStatusLine().getStatusCode() < 300){
theContent = EntityUtils.toString(response.getEntity(), Charset.forName("UTF-8")); //read content for data
EntityUtils.consume(response.getEntity()); //close out inputstream ignore content
if(response.getEntity() != null ) {
theContent = EntityUtils.toString(response.getEntity(), Charset.forName("UTF-8")); //read content for data
EntityUtils.consume(response.getEntity()); //close out inputstream ignore content
}
}
} catch (IOException e) {
log.warn("Error calling out to HA gateway: IOException in log", e);