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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user