diff --git a/README.md b/README.md index 02c5fe6..99ded63 100644 --- a/README.md +++ b/README.md @@ -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()