Skip to content

Commit 7d9b1e5

Browse files
authored
fix: correct ButtonType reference in README (#6)
- Fix ButtonType GpioType in README.md import and usage
1 parent 9cef739 commit 7d9b1e5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Async Python client for [NanoKVM](https://github.com/sipeed/NanoKVM).
77
```python
88

99
from aiohttp import ClientSession
10-
from nanokvm.models import ButtonType
10+
from nanokvm.models import GpioType
1111
from nanokvm.client import NanoKVMClient
1212

1313

@@ -24,5 +24,5 @@ async with ClientSession() as session:
2424
async for frame in client.mjpeg_stream():
2525
print(frame)
2626

27-
await client.push_button(ButtonType.POWER, duration_ms=1000)
28-
```
27+
await client.push_button(GpioType.POWER, duration_ms=1000)
28+
```

0 commit comments

Comments
 (0)