Added more logging and updated nest controller version to fix issues

with range temp setting in nest.
This commit is contained in:
Admin
2016-03-09 16:45:21 -06:00
parent 113ce0ca59
commit 73f0f766f7
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
<groupId>com.bwssystems.HABridge</groupId> <groupId>com.bwssystems.HABridge</groupId>
<artifactId>ha-bridge</artifactId> <artifactId>ha-bridge</artifactId>
<version>1.4.1a</version> <version>1.4.1b</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>HA Bridge</name> <name>HA Bridge</name>
@@ -43,7 +43,7 @@
<dependency> <dependency>
<groupId>com.github.bwssytems</groupId> <groupId>com.github.bwssytems</groupId>
<artifactId>nest-controller</artifactId> <artifactId>nest-controller</artifactId>
<version>1.0.6</version> <version>1.0.8</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>

View File

@@ -145,7 +145,7 @@ public class BridgeSettingsDescriptor {
this.numberoflogmessages = numberoflogmessages; this.numberoflogmessages = numberoflogmessages;
} }
public Boolean isValidVera() { public Boolean isValidVera() {
if(this.getVeraAddress() == null) if(this.getVeraAddress() == null || this.getVeraAddress().getDevices().size() <= 0)
return false; return false;
List<NamedIP> devicesList = this.getVeraAddress().getDevices(); List<NamedIP> devicesList = this.getVeraAddress().getDevices();
if(devicesList.get(0).getIp().contains(Configuration.DEFAULT_ADDRESS)) if(devicesList.get(0).getIp().contains(Configuration.DEFAULT_ADDRESS))