Skip to content

Commit 0c4b4bd

Browse files
authored
Update index.md
1 parent 84fe3d0 commit 0c4b4bd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/index.md

+14
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,17 @@ It allows interfacing with:
99
Coming soon:
1010

1111
- Nest thermostat
12+
13+
## Demo
14+
15+
```
16+
nda = NestDeviceAccess(
17+
project_id="PROJECT_ID",
18+
client_id="CLIENT_ID",
19+
client_secret="CLIENT_SECRET",
20+
code="OAUTH_CODE",
21+
)
22+
nda.login()
23+
for device in nda.devices():
24+
print(device.name)
25+
```

0 commit comments

Comments
 (0)