blob: c3748caaa2588aa4b1edf28a5f781d4c3edb6f60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env python3
import __py_include
from homekit.api.errors import ApiResponseError
from homekit.media import SoundNodeClient
if __name__ == '__main__':
client = SoundNodeClient(('127.0.0.1', 8313))
print(client.amixer_get_all())
try:
client.amixer_get('invalidname')
except ApiResponseError as exc:
print(exc)
|