Add maintenance cycle

This commit is contained in:
Andre Basche 2023-05-13 00:16:52 +02:00
parent 81c202d730
commit d350d639cc
3 changed files with 11 additions and 2 deletions

View file

@ -140,6 +140,12 @@ class HonAPI:
async with self._hon.get(url, params=params) as response:
return (await response.json()).get("payload", {})
async def load_maintenance(self, appliance: HonAppliance):
url = f"{const.API_URL}/commands/v1/maintenance-cycle"
params = {"macAddress": appliance.mac_address}
async with self._hon.get(url, params=params) as response:
return (await response.json()).get("payload", {})
async def send_command(
self,
appliance: HonAppliance,