mirror of
https://github.com/home-assistant/core.git
synced 2025-08-23 22:41:39 +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:
|
if self.info.primary_value.value <= speed_limit:
|
||||||
break
|
break
|
||||||
|
|
||||||
return int(percentage)
|
return round(percentage)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def percentage_step(self) -> float:
|
def percentage_step(self) -> float:
|
||||||
|
Reference in New Issue
Block a user