mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-16 08:04:25 -04:00
Add maintenance cycle
This commit is contained in:
parent
81c202d730
commit
d350d639cc
3 changed files with 11 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue