summaryrefslogtreecommitdiff
path: root/test/test_sound_node_client.py
blob: 247cc69c3aa55c9c6f148ac043ce84c9d85fd04c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python3
import include_homekit

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)