mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-06-02 15:49:50 -04:00
Read out connection
This commit is contained in:
parent
1ef5f7a64d
commit
0f630e854e
5 changed files with 31 additions and 5 deletions
|
@ -55,7 +55,7 @@ async def main():
|
|||
password = getpass("Password for hOn account: ")
|
||||
async with HonConnection(user, password) as hon:
|
||||
for device in hon.devices:
|
||||
print("=" * 10, device.nick_name, "=" * 10)
|
||||
print("=" * 10, device.appliance_type_name, "-", device.nick_name, "=" * 10)
|
||||
pretty_print({"commands": device.commands})
|
||||
pretty_print({"data": device.data})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue