Fix parameter issue in LCN cover close/stop (#42342)

This commit is contained in:
Andre Lengwenus 2020-10-25 13:44:39 +01:00 committed by GitHub
parent bf4cc364e9
commit 99e2d13668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ class LcnOutputsCover(LcnDevice, CoverEntity):
self._is_opening = False
self._is_closing = True
state = pypck.lcn_defs.MotorStateModifier.DOWN
self.address_connection.control_motors_outputs(state)
self.address_connection.control_motors_outputs(state, self.reverse_time)
self.async_write_ha_state()
async def async_open_cover(self, **kwargs):
@ -106,7 +106,7 @@ class LcnOutputsCover(LcnDevice, CoverEntity):
self._is_closing = False
self._is_opening = False
state = pypck.lcn_defs.MotorStateModifier.STOP
self.address_connection.control_motors_outputs(state, self.reverse_time)
self.address_connection.control_motors_outputs(state)
self.async_write_ha_state()
def input_received(self, input_obj):