Use round() instead of int() for percentage computations; this makes the percentage setting match the setpoints in the UI

This commit is contained in:
Michael Kowalchuk
2021-11-16 21:43:26 -08:00
parent 65c48f8ea3
commit bd720a27a1

View File

@@ -183,7 +183,7 @@ class ConfiguredSpeedRangeZwaveFan(ZwaveFan):
if self.info.primary_value.value <= speed_limit:
break
return int(percentage)
return round(percentage)
@property
def percentage_step(self) -> float: