Skip to content

Commit 45558f3

Browse files
authored
Fix haojai brand name in Matter fixtures (home-assistant#155443)
1 parent c10b643 commit 45558f3

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

tests/components/matter/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async def integration_fixture(
100100
"flow_sensor",
101101
"generic_switch",
102102
"generic_switch_multi",
103-
"haijai_switch",
103+
"haojai_switch",
104104
"humidity_sensor",
105105
"inovelli_vtm30",
106106
"laundry_dryer",

tests/components/matter/fixtures/nodes/haijai_switch.json renamed to tests/components/matter/fixtures/nodes/haojai_switch.json

File renamed without changes.

tests/components/matter/snapshots/test_button.ambr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@
11221122
'state': 'unknown',
11231123
})
11241124
# ---
1125-
# name: test_buttons[haijai_switch][button.hjmt_6b_identify_1-entry]
1125+
# name: test_buttons[haojai_switch][button.hjmt_6b_identify_1-entry]
11261126
EntityRegistryEntrySnapshot({
11271127
'aliases': set({
11281128
}),
@@ -1157,7 +1157,7 @@
11571157
'unit_of_measurement': None,
11581158
})
11591159
# ---
1160-
# name: test_buttons[haijai_switch][button.hjmt_6b_identify_1-state]
1160+
# name: test_buttons[haojai_switch][button.hjmt_6b_identify_1-state]
11611161
StateSnapshot({
11621162
'attributes': ReadOnlyDict({
11631163
'device_class': 'identify',

tests/components/matter/snapshots/test_event.ambr

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
'state': 'unknown',
193193
})
194194
# ---
195-
# name: test_events[haijai_switch][event.hjmt_6b_button_1-entry]
195+
# name: test_events[haojai_switch][event.hjmt_6b_button_1-entry]
196196
EntityRegistryEntrySnapshot({
197197
'aliases': set({
198198
}),
@@ -234,7 +234,7 @@
234234
'unit_of_measurement': None,
235235
})
236236
# ---
237-
# name: test_events[haijai_switch][event.hjmt_6b_button_1-state]
237+
# name: test_events[haojai_switch][event.hjmt_6b_button_1-state]
238238
StateSnapshot({
239239
'attributes': ReadOnlyDict({
240240
'device_class': 'button',
@@ -255,7 +255,7 @@
255255
'state': 'unknown',
256256
})
257257
# ---
258-
# name: test_events[haijai_switch][event.hjmt_6b_button_2-entry]
258+
# name: test_events[haojai_switch][event.hjmt_6b_button_2-entry]
259259
EntityRegistryEntrySnapshot({
260260
'aliases': set({
261261
}),
@@ -297,7 +297,7 @@
297297
'unit_of_measurement': None,
298298
})
299299
# ---
300-
# name: test_events[haijai_switch][event.hjmt_6b_button_2-state]
300+
# name: test_events[haojai_switch][event.hjmt_6b_button_2-state]
301301
StateSnapshot({
302302
'attributes': ReadOnlyDict({
303303
'device_class': 'button',
@@ -318,7 +318,7 @@
318318
'state': 'unknown',
319319
})
320320
# ---
321-
# name: test_events[haijai_switch][event.hjmt_6b_button_3-entry]
321+
# name: test_events[haojai_switch][event.hjmt_6b_button_3-entry]
322322
EntityRegistryEntrySnapshot({
323323
'aliases': set({
324324
}),
@@ -360,7 +360,7 @@
360360
'unit_of_measurement': None,
361361
})
362362
# ---
363-
# name: test_events[haijai_switch][event.hjmt_6b_button_3-state]
363+
# name: test_events[haojai_switch][event.hjmt_6b_button_3-state]
364364
StateSnapshot({
365365
'attributes': ReadOnlyDict({
366366
'device_class': 'button',
@@ -381,7 +381,7 @@
381381
'state': 'unknown',
382382
})
383383
# ---
384-
# name: test_events[haijai_switch][event.hjmt_6b_button_4-entry]
384+
# name: test_events[haojai_switch][event.hjmt_6b_button_4-entry]
385385
EntityRegistryEntrySnapshot({
386386
'aliases': set({
387387
}),
@@ -423,7 +423,7 @@
423423
'unit_of_measurement': None,
424424
})
425425
# ---
426-
# name: test_events[haijai_switch][event.hjmt_6b_button_4-state]
426+
# name: test_events[haojai_switch][event.hjmt_6b_button_4-state]
427427
StateSnapshot({
428428
'attributes': ReadOnlyDict({
429429
'device_class': 'button',
@@ -444,7 +444,7 @@
444444
'state': 'unknown',
445445
})
446446
# ---
447-
# name: test_events[haijai_switch][event.hjmt_6b_button_5-entry]
447+
# name: test_events[haojai_switch][event.hjmt_6b_button_5-entry]
448448
EntityRegistryEntrySnapshot({
449449
'aliases': set({
450450
}),
@@ -486,7 +486,7 @@
486486
'unit_of_measurement': None,
487487
})
488488
# ---
489-
# name: test_events[haijai_switch][event.hjmt_6b_button_5-state]
489+
# name: test_events[haojai_switch][event.hjmt_6b_button_5-state]
490490
StateSnapshot({
491491
'attributes': ReadOnlyDict({
492492
'device_class': 'button',
@@ -507,7 +507,7 @@
507507
'state': 'unknown',
508508
})
509509
# ---
510-
# name: test_events[haijai_switch][event.hjmt_6b_button_6-entry]
510+
# name: test_events[haojai_switch][event.hjmt_6b_button_6-entry]
511511
EntityRegistryEntrySnapshot({
512512
'aliases': set({
513513
}),
@@ -549,7 +549,7 @@
549549
'unit_of_measurement': None,
550550
})
551551
# ---
552-
# name: test_events[haijai_switch][event.hjmt_6b_button_6-state]
552+
# name: test_events[haojai_switch][event.hjmt_6b_button_6-state]
553553
StateSnapshot({
554554
'attributes': ReadOnlyDict({
555555
'device_class': 'button',

tests/components/matter/snapshots/test_sensor.ambr

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4257,7 +4257,7 @@
42574257
'state': '0',
42584258
})
42594259
# ---
4260-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_battery-entry]
4260+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_battery-entry]
42614261
EntityRegistryEntrySnapshot({
42624262
'aliases': set({
42634263
}),
@@ -4294,7 +4294,7 @@
42944294
'unit_of_measurement': '%',
42954295
})
42964296
# ---
4297-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_battery-state]
4297+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_battery-state]
42984298
StateSnapshot({
42994299
'attributes': ReadOnlyDict({
43004300
'device_class': 'battery',
@@ -4310,7 +4310,7 @@
43104310
'state': '1',
43114311
})
43124312
# ---
4313-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_battery_voltage-entry]
4313+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_battery_voltage-entry]
43144314
EntityRegistryEntrySnapshot({
43154315
'aliases': set({
43164316
}),
@@ -4353,7 +4353,7 @@
43534353
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
43544354
})
43554355
# ---
4356-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_battery_voltage-state]
4356+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_battery_voltage-state]
43574357
StateSnapshot({
43584358
'attributes': ReadOnlyDict({
43594359
'device_class': 'voltage',
@@ -4369,7 +4369,7 @@
43694369
'state': '2.316',
43704370
})
43714371
# ---
4372-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_1-entry]
4372+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_1-entry]
43734373
EntityRegistryEntrySnapshot({
43744374
'aliases': set({
43754375
}),
@@ -4406,7 +4406,7 @@
44064406
'unit_of_measurement': None,
44074407
})
44084408
# ---
4409-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_1-state]
4409+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_1-state]
44104410
StateSnapshot({
44114411
'attributes': ReadOnlyDict({
44124412
'friendly_name': 'HJMT-6B Current switch position (1)',
@@ -4420,7 +4420,7 @@
44204420
'state': '0',
44214421
})
44224422
# ---
4423-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_2-entry]
4423+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_2-entry]
44244424
EntityRegistryEntrySnapshot({
44254425
'aliases': set({
44264426
}),
@@ -4457,7 +4457,7 @@
44574457
'unit_of_measurement': None,
44584458
})
44594459
# ---
4460-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_2-state]
4460+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_2-state]
44614461
StateSnapshot({
44624462
'attributes': ReadOnlyDict({
44634463
'friendly_name': 'HJMT-6B Current switch position (2)',
@@ -4471,7 +4471,7 @@
44714471
'state': '0',
44724472
})
44734473
# ---
4474-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_3-entry]
4474+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_3-entry]
44754475
EntityRegistryEntrySnapshot({
44764476
'aliases': set({
44774477
}),
@@ -4508,7 +4508,7 @@
45084508
'unit_of_measurement': None,
45094509
})
45104510
# ---
4511-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_3-state]
4511+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_3-state]
45124512
StateSnapshot({
45134513
'attributes': ReadOnlyDict({
45144514
'friendly_name': 'HJMT-6B Current switch position (3)',
@@ -4522,7 +4522,7 @@
45224522
'state': '0',
45234523
})
45244524
# ---
4525-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_4-entry]
4525+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_4-entry]
45264526
EntityRegistryEntrySnapshot({
45274527
'aliases': set({
45284528
}),
@@ -4559,7 +4559,7 @@
45594559
'unit_of_measurement': None,
45604560
})
45614561
# ---
4562-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_4-state]
4562+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_4-state]
45634563
StateSnapshot({
45644564
'attributes': ReadOnlyDict({
45654565
'friendly_name': 'HJMT-6B Current switch position (4)',
@@ -4573,7 +4573,7 @@
45734573
'state': '0',
45744574
})
45754575
# ---
4576-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_5-entry]
4576+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_5-entry]
45774577
EntityRegistryEntrySnapshot({
45784578
'aliases': set({
45794579
}),
@@ -4610,7 +4610,7 @@
46104610
'unit_of_measurement': None,
46114611
})
46124612
# ---
4613-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_5-state]
4613+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_5-state]
46144614
StateSnapshot({
46154615
'attributes': ReadOnlyDict({
46164616
'friendly_name': 'HJMT-6B Current switch position (5)',
@@ -4624,7 +4624,7 @@
46244624
'state': '0',
46254625
})
46264626
# ---
4627-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_6-entry]
4627+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_6-entry]
46284628
EntityRegistryEntrySnapshot({
46294629
'aliases': set({
46304630
}),
@@ -4661,7 +4661,7 @@
46614661
'unit_of_measurement': None,
46624662
})
46634663
# ---
4664-
# name: test_sensors[haijai_switch][sensor.hjmt_6b_current_switch_position_6-state]
4664+
# name: test_sensors[haojai_switch][sensor.hjmt_6b_current_switch_position_6-state]
46654665
StateSnapshot({
46664666
'attributes': ReadOnlyDict({
46674667
'friendly_name': 'HJMT-6B Current switch position (6)',

0 commit comments

Comments
 (0)