Fix setting speed of Tuya fan (#65155)

This commit is contained in:
Franck Nijhof 2022-01-29 06:05:53 +01:00 committed by GitHub
parent 0755310258
commit 16db8e0802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,7 +137,7 @@ class TuyaFanEntity(TuyaEntity, FanEntity):
[
{
"code": self._speed.dpcode,
"value": self._speed.scale_value_back(percentage),
"value": int(self._speed.remap_value_from(percentage, 0, 100)),
}
]
)