Update README to adjust for API changes.

This commit is contained in:
Andrius Štikonas 2024-01-21 17:04:00 +00:00
parent 91c95149a3
commit 1121045275
1 changed files with 3 additions and 2 deletions

View File

@ -34,8 +34,9 @@ async def run():
# Or, for a websocket connection:
# hub = neohub.Neohub(port=4243, token='xxx-xxxxxxx')
system = await hub.get_system()
hub_data, devices = await hub.get_live_data()
for device in devices['thermostats']:
hub_data = await hub.get_devices_data()
devices = hub_data['neo_devices']
for device in devices:
print(f"Temperature in zone {device.name}: {device.temperature}")
await device.identify()