Skip to content

Commit 12023c3

Browse files
authored
Rename Mock Door Lock with unbolt fixture (home-assistant#154627)
1 parent a287499 commit 12023c3

File tree

7 files changed

+58
-58
lines changed

7 files changed

+58
-58
lines changed

tests/components/matter/fixtures/nodes/door_lock_with_unbolt.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
"0/40/0": 1,
4444
"0/40/1": "TEST_VENDOR",
4545
"0/40/2": 65521,
46-
"0/40/3": "Mock Door Lock",
46+
"0/40/3": "Mock Door Lock with unbolt",
4747
"0/40/4": 32769,
48-
"0/40/5": "Mock Door Lock",
48+
"0/40/5": "Mock Door Lock with unbolt",
4949
"0/40/6": "**REDACTED**",
5050
"0/40/7": 0,
5151
"0/40/8": "TEST_VERSION",

tests/components/matter/snapshots/test_binary_sensor.ambr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
'state': 'off',
147147
})
148148
# ---
149-
# name: test_binary_sensors[door_lock_with_unbolt][binary_sensor.mock_door_lock_battery-entry]
149+
# name: test_binary_sensors[door_lock_with_unbolt][binary_sensor.mock_door_lock_with_unbolt_battery-entry]
150150
EntityRegistryEntrySnapshot({
151151
'aliases': set({
152152
}),
@@ -159,7 +159,7 @@
159159
'disabled_by': None,
160160
'domain': 'binary_sensor',
161161
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
162-
'entity_id': 'binary_sensor.mock_door_lock_battery',
162+
'entity_id': 'binary_sensor.mock_door_lock_with_unbolt_battery',
163163
'has_entity_name': True,
164164
'hidden_by': None,
165165
'icon': None,
@@ -181,21 +181,21 @@
181181
'unit_of_measurement': None,
182182
})
183183
# ---
184-
# name: test_binary_sensors[door_lock_with_unbolt][binary_sensor.mock_door_lock_battery-state]
184+
# name: test_binary_sensors[door_lock_with_unbolt][binary_sensor.mock_door_lock_with_unbolt_battery-state]
185185
StateSnapshot({
186186
'attributes': ReadOnlyDict({
187187
'device_class': 'battery',
188-
'friendly_name': 'Mock Door Lock Battery',
188+
'friendly_name': 'Mock Door Lock with unbolt Battery',
189189
}),
190190
'context': <ANY>,
191-
'entity_id': 'binary_sensor.mock_door_lock_battery',
191+
'entity_id': 'binary_sensor.mock_door_lock_with_unbolt_battery',
192192
'last_changed': <ANY>,
193193
'last_reported': <ANY>,
194194
'last_updated': <ANY>,
195195
'state': 'off',
196196
})
197197
# ---
198-
# name: test_binary_sensors[door_lock_with_unbolt][binary_sensor.mock_door_lock_door-entry]
198+
# name: test_binary_sensors[door_lock_with_unbolt][binary_sensor.mock_door_lock_with_unbolt_door-entry]
199199
EntityRegistryEntrySnapshot({
200200
'aliases': set({
201201
}),
@@ -208,7 +208,7 @@
208208
'disabled_by': None,
209209
'domain': 'binary_sensor',
210210
'entity_category': None,
211-
'entity_id': 'binary_sensor.mock_door_lock_door',
211+
'entity_id': 'binary_sensor.mock_door_lock_with_unbolt_door',
212212
'has_entity_name': True,
213213
'hidden_by': None,
214214
'icon': None,
@@ -230,14 +230,14 @@
230230
'unit_of_measurement': None,
231231
})
232232
# ---
233-
# name: test_binary_sensors[door_lock_with_unbolt][binary_sensor.mock_door_lock_door-state]
233+
# name: test_binary_sensors[door_lock_with_unbolt][binary_sensor.mock_door_lock_with_unbolt_door-state]
234234
StateSnapshot({
235235
'attributes': ReadOnlyDict({
236236
'device_class': 'door',
237-
'friendly_name': 'Mock Door Lock Door',
237+
'friendly_name': 'Mock Door Lock with unbolt Door',
238238
}),
239239
'context': <ANY>,
240-
'entity_id': 'binary_sensor.mock_door_lock_door',
240+
'entity_id': 'binary_sensor.mock_door_lock_with_unbolt_door',
241241
'last_changed': <ANY>,
242242
'last_reported': <ANY>,
243243
'last_updated': <ANY>,

tests/components/matter/snapshots/test_lock.ambr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
'state': 'unlocked',
100100
})
101101
# ---
102-
# name: test_locks[door_lock_with_unbolt][lock.mock_door_lock-entry]
102+
# name: test_locks[door_lock_with_unbolt][lock.mock_door_lock_with_unbolt-entry]
103103
EntityRegistryEntrySnapshot({
104104
'aliases': set({
105105
}),
@@ -112,7 +112,7 @@
112112
'disabled_by': None,
113113
'domain': 'lock',
114114
'entity_category': None,
115-
'entity_id': 'lock.mock_door_lock',
115+
'entity_id': 'lock.mock_door_lock_with_unbolt',
116116
'has_entity_name': True,
117117
'hidden_by': None,
118118
'icon': None,
@@ -134,15 +134,15 @@
134134
'unit_of_measurement': None,
135135
})
136136
# ---
137-
# name: test_locks[door_lock_with_unbolt][lock.mock_door_lock-state]
137+
# name: test_locks[door_lock_with_unbolt][lock.mock_door_lock_with_unbolt-state]
138138
StateSnapshot({
139139
'attributes': ReadOnlyDict({
140140
'changed_by': 'Unknown',
141-
'friendly_name': 'Mock Door Lock',
141+
'friendly_name': 'Mock Door Lock with unbolt',
142142
'supported_features': <LockEntityFeature: 1>,
143143
}),
144144
'context': <ANY>,
145-
'entity_id': 'lock.mock_door_lock',
145+
'entity_id': 'lock.mock_door_lock_with_unbolt',
146146
'last_changed': <ANY>,
147147
'last_reported': <ANY>,
148148
'last_updated': <ANY>,

tests/components/matter/snapshots/test_number.ambr

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@
748748
'state': '3',
749749
})
750750
# ---
751-
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_autorelock_time-entry]
751+
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_with_unbolt_autorelock_time-entry]
752752
EntityRegistryEntrySnapshot({
753753
'aliases': set({
754754
}),
@@ -766,7 +766,7 @@
766766
'disabled_by': None,
767767
'domain': 'number',
768768
'entity_category': <EntityCategory.CONFIG: 'config'>,
769-
'entity_id': 'number.mock_door_lock_autorelock_time',
769+
'entity_id': 'number.mock_door_lock_with_unbolt_autorelock_time',
770770
'has_entity_name': True,
771771
'hidden_by': None,
772772
'icon': None,
@@ -788,25 +788,25 @@
788788
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
789789
})
790790
# ---
791-
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_autorelock_time-state]
791+
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_with_unbolt_autorelock_time-state]
792792
StateSnapshot({
793793
'attributes': ReadOnlyDict({
794-
'friendly_name': 'Mock Door Lock Autorelock time',
794+
'friendly_name': 'Mock Door Lock with unbolt Autorelock time',
795795
'max': 65534,
796796
'min': 0,
797797
'mode': <NumberMode.BOX: 'box'>,
798798
'step': 1.0,
799799
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
800800
}),
801801
'context': <ANY>,
802-
'entity_id': 'number.mock_door_lock_autorelock_time',
802+
'entity_id': 'number.mock_door_lock_with_unbolt_autorelock_time',
803803
'last_changed': <ANY>,
804804
'last_reported': <ANY>,
805805
'last_updated': <ANY>,
806806
'state': '60',
807807
})
808808
# ---
809-
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_user_code_temporary_disable_time-entry]
809+
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_with_unbolt_user_code_temporary_disable_time-entry]
810810
EntityRegistryEntrySnapshot({
811811
'aliases': set({
812812
}),
@@ -824,7 +824,7 @@
824824
'disabled_by': None,
825825
'domain': 'number',
826826
'entity_category': <EntityCategory.CONFIG: 'config'>,
827-
'entity_id': 'number.mock_door_lock_user_code_temporary_disable_time',
827+
'entity_id': 'number.mock_door_lock_with_unbolt_user_code_temporary_disable_time',
828828
'has_entity_name': True,
829829
'hidden_by': None,
830830
'icon': None,
@@ -846,25 +846,25 @@
846846
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
847847
})
848848
# ---
849-
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_user_code_temporary_disable_time-state]
849+
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_with_unbolt_user_code_temporary_disable_time-state]
850850
StateSnapshot({
851851
'attributes': ReadOnlyDict({
852-
'friendly_name': 'Mock Door Lock User code temporary disable time',
852+
'friendly_name': 'Mock Door Lock with unbolt User code temporary disable time',
853853
'max': 255,
854854
'min': 1,
855855
'mode': <NumberMode.BOX: 'box'>,
856856
'step': 1,
857857
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
858858
}),
859859
'context': <ANY>,
860-
'entity_id': 'number.mock_door_lock_user_code_temporary_disable_time',
860+
'entity_id': 'number.mock_door_lock_with_unbolt_user_code_temporary_disable_time',
861861
'last_changed': <ANY>,
862862
'last_reported': <ANY>,
863863
'last_updated': <ANY>,
864864
'state': '10',
865865
})
866866
# ---
867-
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_wrong_code_limit-entry]
867+
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_with_unbolt_wrong_code_limit-entry]
868868
EntityRegistryEntrySnapshot({
869869
'aliases': set({
870870
}),
@@ -882,7 +882,7 @@
882882
'disabled_by': None,
883883
'domain': 'number',
884884
'entity_category': <EntityCategory.CONFIG: 'config'>,
885-
'entity_id': 'number.mock_door_lock_wrong_code_limit',
885+
'entity_id': 'number.mock_door_lock_with_unbolt_wrong_code_limit',
886886
'has_entity_name': True,
887887
'hidden_by': None,
888888
'icon': None,
@@ -904,17 +904,17 @@
904904
'unit_of_measurement': None,
905905
})
906906
# ---
907-
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_wrong_code_limit-state]
907+
# name: test_numbers[door_lock_with_unbolt][number.mock_door_lock_with_unbolt_wrong_code_limit-state]
908908
StateSnapshot({
909909
'attributes': ReadOnlyDict({
910-
'friendly_name': 'Mock Door Lock Wrong code limit',
910+
'friendly_name': 'Mock Door Lock with unbolt Wrong code limit',
911911
'max': 255,
912912
'min': 1,
913913
'mode': <NumberMode.BOX: 'box'>,
914914
'step': 1,
915915
}),
916916
'context': <ANY>,
917-
'entity_id': 'number.mock_door_lock_wrong_code_limit',
917+
'entity_id': 'number.mock_door_lock_with_unbolt_wrong_code_limit',
918918
'last_changed': <ANY>,
919919
'last_reported': <ANY>,
920920
'last_updated': <ANY>,

tests/components/matter/snapshots/test_select.ambr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@
560560
'state': 'silent',
561561
})
562562
# ---
563-
# name: test_selects[door_lock_with_unbolt][select.mock_door_lock_power_on_behavior_on_startup-entry]
563+
# name: test_selects[door_lock_with_unbolt][select.mock_door_lock_with_unbolt_power_on_behavior_on_startup-entry]
564564
EntityRegistryEntrySnapshot({
565565
'aliases': set({
566566
}),
@@ -580,7 +580,7 @@
580580
'disabled_by': None,
581581
'domain': 'select',
582582
'entity_category': <EntityCategory.CONFIG: 'config'>,
583-
'entity_id': 'select.mock_door_lock_power_on_behavior_on_startup',
583+
'entity_id': 'select.mock_door_lock_with_unbolt_power_on_behavior_on_startup',
584584
'has_entity_name': True,
585585
'hidden_by': None,
586586
'icon': None,
@@ -602,10 +602,10 @@
602602
'unit_of_measurement': None,
603603
})
604604
# ---
605-
# name: test_selects[door_lock_with_unbolt][select.mock_door_lock_power_on_behavior_on_startup-state]
605+
# name: test_selects[door_lock_with_unbolt][select.mock_door_lock_with_unbolt_power_on_behavior_on_startup-state]
606606
StateSnapshot({
607607
'attributes': ReadOnlyDict({
608-
'friendly_name': 'Mock Door Lock Power-on behavior on startup',
608+
'friendly_name': 'Mock Door Lock with unbolt Power-on behavior on startup',
609609
'options': list([
610610
'on',
611611
'off',
@@ -614,14 +614,14 @@
614614
]),
615615
}),
616616
'context': <ANY>,
617-
'entity_id': 'select.mock_door_lock_power_on_behavior_on_startup',
617+
'entity_id': 'select.mock_door_lock_with_unbolt_power_on_behavior_on_startup',
618618
'last_changed': <ANY>,
619619
'last_reported': <ANY>,
620620
'last_updated': <ANY>,
621621
'state': 'off',
622622
})
623623
# ---
624-
# name: test_selects[door_lock_with_unbolt][select.mock_door_lock_sound_volume-entry]
624+
# name: test_selects[door_lock_with_unbolt][select.mock_door_lock_with_unbolt_sound_volume-entry]
625625
EntityRegistryEntrySnapshot({
626626
'aliases': set({
627627
}),
@@ -641,7 +641,7 @@
641641
'disabled_by': None,
642642
'domain': 'select',
643643
'entity_category': <EntityCategory.CONFIG: 'config'>,
644-
'entity_id': 'select.mock_door_lock_sound_volume',
644+
'entity_id': 'select.mock_door_lock_with_unbolt_sound_volume',
645645
'has_entity_name': True,
646646
'hidden_by': None,
647647
'icon': None,
@@ -663,10 +663,10 @@
663663
'unit_of_measurement': None,
664664
})
665665
# ---
666-
# name: test_selects[door_lock_with_unbolt][select.mock_door_lock_sound_volume-state]
666+
# name: test_selects[door_lock_with_unbolt][select.mock_door_lock_with_unbolt_sound_volume-state]
667667
StateSnapshot({
668668
'attributes': ReadOnlyDict({
669-
'friendly_name': 'Mock Door Lock Sound volume',
669+
'friendly_name': 'Mock Door Lock with unbolt Sound volume',
670670
'options': list([
671671
'silent',
672672
'low',
@@ -675,7 +675,7 @@
675675
]),
676676
}),
677677
'context': <ANY>,
678-
'entity_id': 'select.mock_door_lock_sound_volume',
678+
'entity_id': 'select.mock_door_lock_with_unbolt_sound_volume',
679679
'last_changed': <ANY>,
680680
'last_reported': <ANY>,
681681
'last_updated': <ANY>,

tests/components/matter/snapshots/test_switch.ambr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
'state': 'off',
195195
})
196196
# ---
197-
# name: test_switches[door_lock_with_unbolt][switch.mock_door_lock-entry]
197+
# name: test_switches[door_lock_with_unbolt][switch.mock_door_lock_with_unbolt-entry]
198198
EntityRegistryEntrySnapshot({
199199
'aliases': set({
200200
}),
@@ -207,7 +207,7 @@
207207
'disabled_by': None,
208208
'domain': 'switch',
209209
'entity_category': None,
210-
'entity_id': 'switch.mock_door_lock',
210+
'entity_id': 'switch.mock_door_lock_with_unbolt',
211211
'has_entity_name': True,
212212
'hidden_by': None,
213213
'icon': None,
@@ -229,21 +229,21 @@
229229
'unit_of_measurement': None,
230230
})
231231
# ---
232-
# name: test_switches[door_lock_with_unbolt][switch.mock_door_lock-state]
232+
# name: test_switches[door_lock_with_unbolt][switch.mock_door_lock_with_unbolt-state]
233233
StateSnapshot({
234234
'attributes': ReadOnlyDict({
235235
'device_class': 'outlet',
236-
'friendly_name': 'Mock Door Lock',
236+
'friendly_name': 'Mock Door Lock with unbolt',
237237
}),
238238
'context': <ANY>,
239-
'entity_id': 'switch.mock_door_lock',
239+
'entity_id': 'switch.mock_door_lock_with_unbolt',
240240
'last_changed': <ANY>,
241241
'last_reported': <ANY>,
242242
'last_updated': <ANY>,
243243
'state': 'off',
244244
})
245245
# ---
246-
# name: test_switches[door_lock_with_unbolt][switch.mock_door_lock_privacy_mode_button-entry]
246+
# name: test_switches[door_lock_with_unbolt][switch.mock_door_lock_with_unbolt_privacy_mode_button-entry]
247247
EntityRegistryEntrySnapshot({
248248
'aliases': set({
249249
}),
@@ -256,7 +256,7 @@
256256
'disabled_by': None,
257257
'domain': 'switch',
258258
'entity_category': <EntityCategory.CONFIG: 'config'>,
259-
'entity_id': 'switch.mock_door_lock_privacy_mode_button',
259+
'entity_id': 'switch.mock_door_lock_with_unbolt_privacy_mode_button',
260260
'has_entity_name': True,
261261
'hidden_by': None,
262262
'icon': None,
@@ -278,13 +278,13 @@
278278
'unit_of_measurement': None,
279279
})
280280
# ---
281-
# name: test_switches[door_lock_with_unbolt][switch.mock_door_lock_privacy_mode_button-state]
281+
# name: test_switches[door_lock_with_unbolt][switch.mock_door_lock_with_unbolt_privacy_mode_button-state]
282282
StateSnapshot({
283283
'attributes': ReadOnlyDict({
284-
'friendly_name': 'Mock Door Lock Privacy mode button',
284+
'friendly_name': 'Mock Door Lock with unbolt Privacy mode button',
285285
}),
286286
'context': <ANY>,
287-
'entity_id': 'switch.mock_door_lock_privacy_mode_button',
287+
'entity_id': 'switch.mock_door_lock_with_unbolt_privacy_mode_button',
288288
'last_changed': <ANY>,
289289
'last_reported': <ANY>,
290290
'last_updated': <ANY>,

0 commit comments

Comments
 (0)