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:
|
# Or, for a websocket connection:
|
||||||
# hub = neohub.Neohub(port=4243, token='xxx-xxxxxxx')
|
# hub = neohub.Neohub(port=4243, token='xxx-xxxxxxx')
|
||||||
system = await hub.get_system()
|
system = await hub.get_system()
|
||||||
hub_data, devices = await hub.get_live_data()
|
hub_data = await hub.get_devices_data()
|
||||||
for device in devices['thermostats']:
|
devices = hub_data['neo_devices']
|
||||||
|
for device in devices:
|
||||||
print(f"Temperature in zone {device.name}: {device.temperature}")
|
print(f"Temperature in zone {device.name}: {device.temperature}")
|
||||||
await device.identify()
|
await device.identify()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue