From 4ad6183727b02954b0125b193d9d925957915816 Mon Sep 17 00:00:00 2001 From: Rohan Kapoor Date: Thu, 21 Apr 2022 22:51:50 -0700 Subject: [PATCH] Switch to using `percentage` instead of `speed` `speed` was removed in Home Assistant 2022.04. This fixes control of fans. --- src/controllers/fan-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/fan-controller.ts b/src/controllers/fan-controller.ts index 71a4189..0d7e859 100644 --- a/src/controllers/fan-controller.ts +++ b/src/controllers/fan-controller.ts @@ -44,7 +44,7 @@ export class FanController extends Controller { } get hasSlider(): boolean { - return 'speed' in this.stateObj.attributes; + return 'percentage' in this.stateObj.attributes; } get _max(): number {