Skip to content

Commit

Permalink
update tilt command and supported features
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilp committed May 1, 2024
1 parent 3b9dbac commit 98ba82c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions custom_components/deltadore_tydom/ha_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,9 @@ def __init__(self, device: TydomShutter, hass) -> None:
self.supported_features = (
self.supported_features
| CoverEntityFeature.SET_TILT_POSITION
| CoverEntityFeature.OPEN_TILT
| CoverEntityFeature.CLOSE_TILT
| CoverEntityFeature.STOP_TILT
#| CoverEntityFeature.OPEN_TILT
#| CoverEntityFeature.CLOSE_TILT
#| CoverEntityFeature.STOP_TILT
)

@property
Expand Down
2 changes: 1 addition & 1 deletion custom_components/deltadore_tydom/tydom/tydom_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async def set_slope_position(self, position: int) -> None:
LOGGER.debug("set roller tilt position (device) to : %s", position)

await self._tydom_client.put_devices_data(
self._id, self._endpoint, "position", str(position)
self._id, self._endpoint, "slope", str(position)
)


Expand Down

0 comments on commit 98ba82c

Please sign in to comment.