ikaruswill / lovelace-fan-xiaomi

Xiaomi Smartmi Fan Lovelace card with CSS fan animation
Apache License 2.0
74 stars 35 forks source link

Migrate to set_speed_percentage #85

Closed Lyr3x closed 2 years ago

Lyr3x commented 2 years ago

set_speed is removed and the card is no longer working. set_percentage should work as expected. Not tested yet

ikaruswill commented 2 years ago

Hey @Lyr3x thanks for the MR. Currently set_speed is called to set even speed levels, i.e. 1, 2, 3, 4 so it most likely will not work as a drop-in replacement since percentage accepts a value between 0 - 100. I'm currently trying to refactor the speed logic so that it uses percentages.

ikaruswill commented 2 years ago

It's now fixed in 2.1.0.