mirror of
https://github.com/home-assistant/core.git
synced 2025-08-22 14:02:40 +02:00
Use round() instead of int() for percentage computations; this makes the percentage setting match the setpoints in the UI
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user