Removed set_cover_position

The MySensors documentation doesn’t specify when sending a V_PERCENTAGE
is allowed.
This commit is contained in:
Otto Winter
2016-09-25 14:36:00 +02:00
parent 3e36aeaeae
commit d78cb3a04d

View File

@@ -82,17 +82,6 @@ class MySensorsCover(mysensors.MySensorsDeviceEntity, CoverDevice):
self._values[set_req.V_PERCENTAGE] = 0
self.update_ha_state()
def set_cover_position(self, **kwargs):
"""Move the cover to a specific position."""
position = kwargs.get(ATTR_POSITION)
set_req = self.gateway.const.SetReq
self.gateway.set_child_value(
self.node_id, self.child_id, set_req.V_PERCENTAGE, position)
if self.gateway.optimistic:
# Optimistically assume that cover has changed state.
self._values[set_req.V_PERCENTAGE] = position
self.update_ha_state()
def stop_cover(self, **kwargs):
"""Stop the device."""
set_req = self.gateway.const.SetReq