Skip to content

Commit

Permalink
fixing structure mode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Jun 4, 2020
1 parent 4727661 commit 124394d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/roomPlatformAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class FlairRoomPlatformAccessory {
this.updateFromStructure(structure);
});
} else if(value === this.platform.Characteristic.TargetHeatingCoolingState.AUTO) {
this.platform.setStructureMode(FlairMode.AUTO, StructureHeatCoolMode.COOL).then((structure: Structure) => {
this.platform.setStructureMode(FlairMode.AUTO, StructureHeatCoolMode.AUTO).then((structure: Structure) => {
callback(null, this.platform.Characteristic.TargetHeatingCoolingState.AUTO);
this.updateFromStructure(structure);
});
Expand Down

0 comments on commit 124394d

Please sign in to comment.