1
0
mirror of https://github.com/natekspencer/hacs-oasis_mini.git synced 2025-12-06 18:44:14 -05:00

Add missing async_send_auto_clean_command to http client

This commit is contained in:
Nathan Spencer
2025-11-24 02:22:20 +00:00
parent 81668c595a
commit 2f28f7c4bd

View File

@@ -142,6 +142,22 @@ class OasisHttpClient(OasisClientProtocol):
)
return None
async def async_send_auto_clean_command(
self,
device: OasisDevice,
auto_clean: bool,
) -> None:
"""
Enable or disable the device's auto-clean mode.
Parameters:
device (OasisDevice): The target Oasis device to send the command to.
auto_clean (bool): `True` to enable auto-clean mode, `False` to disable it.
"""
await self._async_command(
params={"WRIAUTOCLEAN": 1 if auto_clean else 0},
)
async def async_send_ball_speed_command(
self,
device: OasisDevice,