Skip to content

Commit 783a9b5

Browse files
authored
chore(docs): update example code (#636)
Device 0 is now the gateway, example code updated Device 0 is now the gateway. Without this change nothing works, because the gateway doesn't have circuits or burners.
1 parent 843a1c9 commit 783a9b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ password = "password"
7171

7272
vicare = PyViCare()
7373
vicare.initWithCredentials(email, password, client_id, "token.save")
74-
device = vicare.devices[0]
74+
device = vicare.devices[1]
7575
print(device.getModel())
7676
print("Online" if device.isOnline() else "Offline")
7777

0 commit comments

Comments
 (0)