Fixed Hue bulk build and save hue registration

This commit is contained in:
Admin
2017-06-19 15:00:10 -05:00
parent 92b7f4e260
commit 220e337d08
5 changed files with 73 additions and 111 deletions

View File

@@ -440,4 +440,15 @@ public class BridgeSettingsDescriptor {
public Boolean isValidLifx() {
return this.isLifxconfigured();
}
public void updateHue(NamedIP aHue) {
int indexHue = -1;
for( int i = 0; i < hueaddress.getDevices().size(); i++) {
if(hueaddress.getDevices().get(i).getName().equals(aHue.getName()))
indexHue = i;
}
if(indexHue >= 0) {
hueaddress.getDevices().set(indexHue, aHue);
this.setSettingsChanged(true);
}
}
}