From 435e1fb092231774a24bb8c7b3ab1a6e4888a20d Mon Sep 17 00:00:00 2001 From: Michael Kowalchuk Date: Sat, 13 Nov 2021 04:00:36 -0800 Subject: [PATCH] Always use a step size of 1 for z-wave js fans (#59622) --- homeassistant/components/zwave_js/fan.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/zwave_js/fan.py b/homeassistant/components/zwave_js/fan.py index 6ee709893cb..4b4f23a85d2 100644 --- a/homeassistant/components/zwave_js/fan.py +++ b/homeassistant/components/zwave_js/fan.py @@ -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."""