Always use a step size of 1 for z-wave js fans (#59622)

This commit is contained in:
Michael Kowalchuk 2021-11-13 04:00:36 -08:00 committed by GitHub
parent 8b6b4d7f8a
commit 435e1fb092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,6 +103,11 @@ class ZwaveFan(ZWaveBaseEntity, FanEntity):
return None
return ranged_value_to_percentage(SPEED_RANGE, self.info.primary_value.value)
@property
def percentage_step(self) -> float:
"""Return the step size for percentage."""
return 1
@property
def speed_count(self) -> int:
"""Return the number of speeds the fan supports."""