mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-14 07:04:26 -04:00
Fix command parameter issue hon#63
This commit is contained in:
parent
7b51caecca
commit
11988c73a6
7 changed files with 18 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
import json
|
||||
import logging
|
||||
from datetime import datetime
|
||||
from pprint import pformat
|
||||
from typing import Dict, Optional
|
||||
|
||||
from aiohttp import ClientSession
|
||||
|
@ -188,6 +189,7 @@ class HonAPI:
|
|||
if json_data.get("payload", {}).get("resultCode") == "0":
|
||||
return True
|
||||
_LOGGER.error(await response.text())
|
||||
_LOGGER.error("%s - Payload:\n%s", url, pformat(data))
|
||||
return False
|
||||
|
||||
async def appliance_configuration(self) -> Dict:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue