Skip to content

Commit

Permalink
prepare for slopeCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilp committed May 2, 2024
1 parent 5461c37 commit 454b7c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/deltadore_tydom/tydom/tydom_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,21 @@ async def set_position(self, position: int) -> None:
async def slope_open(self) -> None:
"""Tell the cover to tilt open."""
await self._tydom_client.put_devices_data(
self._id, self._endpoint, "positionCmd", "DOWN"
self._id, self._endpoint, "slopeCmd", "DOWN"
)

# FIXME replace command
async def slope_close(self) -> None:
"""Tell the cover to tilt closed."""
await self._tydom_client.put_devices_data(
self._id, self._endpoint, "positionCmd", "UP"
self._id, self._endpoint, "slopeCmd", "UP"
)

# FIXME replace command
async def slope_stop(self) -> None:
"""Tell the cover to stop tilt."""
await self._tydom_client.put_devices_data(
self._id, self._endpoint, "positionCmd", "STOP"
self._id, self._endpoint, "slopeCmd", "STOP"
)

# FIXME replace command
Expand Down

0 comments on commit 454b7c7

Please sign in to comment.