From 124394db40f3d388abf4054d3370d79f4aa2d713 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Wed, 3 Jun 2020 20:02:24 -0700 Subject: [PATCH] fixing structure mode bug --- src/roomPlatformAccessory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roomPlatformAccessory.ts b/src/roomPlatformAccessory.ts index f494d3c..286d7a2 100644 --- a/src/roomPlatformAccessory.ts +++ b/src/roomPlatformAccessory.ts @@ -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); });