Fix typing on fan percentage (#47259)
This commit is contained in:
parent
7e71050669
commit
38a2f196b8
9 changed files with 16 additions and 12 deletions
|
@ -76,7 +76,7 @@ class SmartThingsFan(SmartThingsEntity, FanEntity):
|
|||
return self._device.status.switch
|
||||
|
||||
@property
|
||||
def percentage(self) -> str:
|
||||
def percentage(self) -> int:
|
||||
"""Return the current speed percentage."""
|
||||
return ranged_value_to_percentage(SPEED_RANGE, self._device.status.fan_speed)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue