Fix typing on fan percentage (#47259)

This commit is contained in:
J. Nick Koston 2021-03-02 01:32:24 -06:00 committed by GitHub
parent 7e71050669
commit 38a2f196b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 12 deletions

View file

@ -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)