mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix parameter issue in LCN cover close/stop (#42342)
This commit is contained in:
parent
bf4cc364e9
commit
99e2d13668
@ -89,7 +89,7 @@ class LcnOutputsCover(LcnDevice, CoverEntity):
|
|||||||
self._is_opening = False
|
self._is_opening = False
|
||||||
self._is_closing = True
|
self._is_closing = True
|
||||||
state = pypck.lcn_defs.MotorStateModifier.DOWN
|
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()
|
self.async_write_ha_state()
|
||||||
|
|
||||||
async def async_open_cover(self, **kwargs):
|
async def async_open_cover(self, **kwargs):
|
||||||
@ -106,7 +106,7 @@ class LcnOutputsCover(LcnDevice, CoverEntity):
|
|||||||
self._is_closing = False
|
self._is_closing = False
|
||||||
self._is_opening = False
|
self._is_opening = False
|
||||||
state = pypck.lcn_defs.MotorStateModifier.STOP
|
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()
|
self.async_write_ha_state()
|
||||||
|
|
||||||
def input_received(self, input_obj):
|
def input_received(self, input_obj):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user