Update README to adjust for API changes.
This commit is contained in:
parent
91c95149a3
commit
1121045275
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue