Skip to content

Commit

Permalink
Merge pull request custom-cards#3 from rohankapoorcom/rohankapoorcom-…
Browse files Browse the repository at this point in the history
…fix-fans

Switch to using `percentage` instead of `speed` for fans
  • Loading branch information
rohankapoorcom authored Jun 2, 2022
2 parents 877bc94 + 4ad6183 commit 818c6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/fan-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 818c6ad

Please sign in to comment.