Skip to content

Commit

Permalink
Merge pull request openhab#1537 from cdjackson/zwave-association_update
Browse files Browse the repository at this point in the history
Update association to use 'get all' function rather than cycling through the database.
  • Loading branch information
cdjackson committed Oct 13, 2014
2 parents 9289f91 + 00fe3dc commit e6f703f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -941,10 +941,7 @@ public void doAction(String domain, String action) {

if (splitDomain.length == 3) {
// Request all groups for this node
List<ZWaveDbAssociationGroup> groupList = database.getProductAssociationGroups();

for (ZWaveDbAssociationGroup group : groupList)
this.zController.sendData(associationCommandClass.getAssociationMessage(group.Index));
associationCommandClass.getAllAssociations();
} else if (splitDomain.length == 4) {
// Request a single group
int nodeArg = Integer.parseInt(splitDomain[3].substring(11));
Expand Down

0 comments on commit e6f703f

Please sign in to comment.