mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
This fixes issue: #2486
This commit is contained in:
parent
3441170827
commit
a0d71c9cb2
@ -56,7 +56,12 @@ class ZwaveRollershutter(zwave.ZWaveDeviceEntity, RollershutterDevice):
|
||||
@property
|
||||
def current_position(self):
|
||||
"""Return the current position of Zwave roller shutter."""
|
||||
return self._value.data
|
||||
if self._value.data <= 5:
|
||||
return 100
|
||||
elif self._value.data >= 95:
|
||||
return 0
|
||||
else:
|
||||
return None
|
||||
|
||||
def move_up(self, **kwargs):
|
||||
"""Move the roller shutter up."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user