File: test_client.ambr

package info (click to toggle)
switchbot-api 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 292 kB
  • sloc: python: 406; makefile: 2
file content (72 lines) | stat: -rw-r--r-- 1,653 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# serializer version: 1
# name: test_device_list
  list([
    dict({
      'device_id': 'D82812821F08',
      'device_name': 'Hub 2 08',
      'device_type': 'Hub 2',
      'hub_device_id': '',
    }),
    dict({
      'device_id': 'E2562C1DCC1A',
      'device_name': 'Curtain 1A',
      'device_type': 'Curtain3',
      'hub_device_id': 'D82812821F08',
    }),
    dict({
      'device_id': 'FCE84BB8B04F',
      'device_name': 'Curtain 4F',
      'device_type': 'Curtain',
      'hub_device_id': '',
    }),
    dict({
      'device_id': 'FF711F51601E',
      'device_name': 'Curtain 1E',
      'device_type': 'Curtain3',
      'hub_device_id': 'D82812821F08',
    }),
    dict({
      'device_id': '01-202501201703-63754985',
      'device_name': 'TV',
      'device_type': 'DIY TV',
      'hub_device_id': 'D82812821F08',
    }),
  ])
# ---
# name: test_device_status[curtain3]
  dict({
    'battery': 44,
    'calibrate': True,
    'deviceId': 'FF711F51601E',
    'deviceType': 'Curtain3',
    'group': False,
    'hubDeviceId': 'D82812821F08',
    'moving': False,
    'slidePosition': 0,
    'version': 'V1.2',
  })
# ---
# name: test_device_status[curtain]
  dict({
    'battery': 0,
    'calibrate': False,
    'deviceId': 'FCE84BB8B04F',
    'deviceType': 'Curtain',
    'group': False,
    'hubDeviceId': '000000000000',
    'moving': False,
    'slidePosition': 0,
    'version': 'V6.3',
  })
# ---
# name: test_device_status[hub_2]
  dict({
    'deviceId': 'D82812821F08',
    'deviceType': 'Hub 2',
    'hubDeviceId': 'D82812821F08',
    'humidity': 52,
    'lightLevel': 1,
    'temperature': 17.8,
    'version': 'V2.3-1.4',
  })
# ---