From e282116a362a5dcb24996d3235ee7531ab6e8f1f Mon Sep 17 00:00:00 2001 From: Johann Richard <189003+johannrichard@users.noreply.github.com> Date: Mon, 23 Nov 2020 21:48:58 +0100 Subject: [PATCH] fix(dingz): max tilt value - correctly set maxTiltValue everywhere --- src/dingzAccessory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dingzAccessory.ts b/src/dingzAccessory.ts index 13b5e02..28eae0e 100644 --- a/src/dingzAccessory.ts +++ b/src/dingzAccessory.ts @@ -948,7 +948,7 @@ export class DingzDaAccessory extends EventEmitter { .getCharacteristic( this.platform.Characteristic.CurrentHorizontalTiltAngle, ) - .updateValue((state.lamella / 100) * 90); // Set in °, Get in % (...) + .updateValue((state.lamella / 100) * maxTiltValue); // Set in °, Get in % (...) break; } service