Fixed handling when no harmony hub is given. dev.mode was updated as

well.

This closes #14.
This commit is contained in:
Admin
2015-12-03 14:36:23 -06:00
parent 2a52783bb1
commit 5a843f7569
7 changed files with 64 additions and 34 deletions

View File

@@ -68,7 +68,10 @@ public class HueMulator {
mapper = new ObjectMapper(); //armzilla: work around Echo incorrect content type and breaking mapping. Map manually
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
repository = aDeviceRepository;
myHarmonyHome = theHarmonyHome;
if(theBridgeSettings.isValidHarmony())
this.myHarmonyHome = theHarmonyHome;
else
this.myHarmonyHome = null;
bridgeSettings = theBridgeSettings;
}