-
-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Expand file tree
/
Copy pathtest_fan.ambr
More file actions
70 lines (70 loc) · 1.62 KB
/
test_fan.ambr
File metadata and controls
70 lines (70 loc) · 1.62 KB
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
# serializer version: 1
# name: test_fan_entity_state[fan.living-entry]
EntityRegistryEntrySnapshot({
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'preset_modes': list([
'auto',
'man1',
'man2',
'man3',
'empt',
]),
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'fan',
'entity_category': None,
'entity_id': 'fan.living',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'object_id_base': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'platform': 'duco',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': <FanEntityFeature: 9>,
'translation_key': 'ventilation',
'unique_id': 'aa:bb:cc:dd:ee:ff_1',
'unit_of_measurement': None,
})
# ---
# name: test_fan_entity_state[fan.living-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Living',
'percentage': None,
'percentage_step': 33.333333333333336,
'preset_mode': 'auto',
'preset_modes': list([
'auto',
'man1',
'man2',
'man3',
'empt',
]),
'supported_features': <FanEntityFeature: 9>,
}),
'context': <ANY>,
'entity_id': 'fan.living',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---