homebridge-tydom 0.23.0 → 0.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,6 +92,10 @@ const setupGarageDoorOpener = (accessory, controller) => {
|
|
|
92
92
|
return 0;
|
|
93
93
|
};
|
|
94
94
|
// Add the actual accessory Service
|
|
95
|
+
const legacyService = accessory.getService(hap_1.Service.Switch);
|
|
96
|
+
if (legacyService) {
|
|
97
|
+
accessory.removeService(legacyService);
|
|
98
|
+
}
|
|
95
99
|
const service = (0, accessory_1.addAccessoryService)(accessory, hap_1.Service.GarageDoorOpener, `${accessory.displayName}`, true);
|
|
96
100
|
service
|
|
97
101
|
.getCharacteristic(CurrentDoorState)
|
package/lib/helpers/accessory.js
CHANGED
|
@@ -89,9 +89,7 @@ const getTydomAccessoryDataUpdate = (accessory) => {
|
|
|
89
89
|
case 3 /* Categories.FAN */:
|
|
90
90
|
return fan_1.updateFan;
|
|
91
91
|
case 4 /* Categories.GARAGE_DOOR_OPENER */:
|
|
92
|
-
return
|
|
93
|
-
// no-op
|
|
94
|
-
};
|
|
92
|
+
return garageDoorOpener_1.updateGarageDoorOpener;
|
|
95
93
|
case 14 /* Categories.WINDOW_COVERING */:
|
|
96
94
|
return windowCovering_1.updateWindowCovering;
|
|
97
95
|
case 11 /* Categories.SECURITY_SYSTEM */:
|