Finished draft HAL integration for lights type only

This commit is contained in:
bwssystems
2016-05-21 16:49:12 -05:00
parent 8a468b8352
commit e43473734e
6 changed files with 69 additions and 19 deletions

View File

@@ -44,7 +44,7 @@ public class DeviceResource {
private HalHome halHome;
private static final Set<String> supportedVerbs = new HashSet<>(Arrays.asList("get", "put", "post"));
public DeviceResource(BridgeSettingsDescriptor theSettings, HarmonyHome theHarmonyHome, NestHome aNestHome, HueHome aHueHome) {
public DeviceResource(BridgeSettingsDescriptor theSettings, HarmonyHome theHarmonyHome, NestHome aNestHome, HueHome aHueHome, HalHome aHalHome) {
this.deviceRepository = new DeviceRepository(theSettings.getUpnpDeviceDb());
if(theSettings.isValidVera())
@@ -68,7 +68,7 @@ public class DeviceResource {
this.hueHome = null;
if(theSettings.isValidHal())
this.hueHome = aHueHome;
this.halHome = aHalHome;
else
this.halHome = null;