Bugfix: incorrectly inverted value when setting cover position (#3376)

This commit is contained in:
Eric Jansen 2016-09-15 02:41:45 +02:00 committed by Paulus Schoutsen
parent 982a0bc195
commit 70a79efb77

View File

@ -139,7 +139,7 @@ class ZwaveRollershutter(zwave.ZWaveDeviceEntity, CoverDevice):
def set_cover_position(self, position, **kwargs): def set_cover_position(self, position, **kwargs):
"""Move the roller shutter to a specific position.""" """Move the roller shutter to a specific position."""
self._node.set_dimmer(self._value.value_id, 100 - position) self._node.set_dimmer(self._value.value_id, position)
def stop_cover(self, **kwargs): def stop_cover(self, **kwargs):
"""Stop the roller shutter.""" """Stop the roller shutter."""