From e7fd646597cd2ff80273d9865821e5e8d970d5fa Mon Sep 17 00:00:00 2001 From: Kiwi Cam <32912464+kiwi-cam@users.noreply.github.com> Date: Fri, 19 May 2023 13:10:35 +1200 Subject: [PATCH] Fixed error in Fan characteristic setting --- accessories/fan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessories/fan.js b/accessories/fan.js index 8b200bae..e4e76ad3 100644 --- a/accessories/fan.js +++ b/accessories/fan.js @@ -234,7 +234,7 @@ class FanAccessory extends SwitchAccessory { }); // Add HAP properties for improved accessory representation in Homekit - this.getCharacteristic(Characteristic.RotationSpeed).setProps({ + this.serviceManager.getCharacteristic(Characteristic.RotationSpeed).setProps({ minStep: config.stepSize, minValue: 0, maxValue: 100