Skip to content

Commit d3857a0

Browse files
authored
Rename Matter thermostat fixture (home-assistant#156795)
1 parent 8c9b90a commit d3857a0

File tree

12 files changed

+395
-395
lines changed

12 files changed

+395
-395
lines changed

tests/components/matter/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async def integration_fixture(
137137
"switch_unit",
138138
"tado_smart_radiator_thermostat_x",
139139
"temperature_sensor",
140-
"thermostat",
140+
"longan_link_thermostat",
141141
"vacuum_cleaner",
142142
"valve",
143143
"window_covering_full",

tests/components/matter/fixtures/nodes/thermostat.json renamed to tests/components/matter/fixtures/nodes/longan_link_thermostat.json

File renamed without changes.

tests/components/matter/snapshots/test_binary_sensor.ambr

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,55 @@
440440
'state': 'on',
441441
})
442442
# ---
443+
# name: test_binary_sensors[longan_link_thermostat][binary_sensor.longan_link_hvac_occupancy-entry]
444+
EntityRegistryEntrySnapshot({
445+
'aliases': set({
446+
}),
447+
'area_id': None,
448+
'capabilities': None,
449+
'config_entry_id': <ANY>,
450+
'config_subentry_id': <ANY>,
451+
'device_class': None,
452+
'device_id': <ANY>,
453+
'disabled_by': None,
454+
'domain': 'binary_sensor',
455+
'entity_category': None,
456+
'entity_id': 'binary_sensor.longan_link_hvac_occupancy',
457+
'has_entity_name': True,
458+
'hidden_by': None,
459+
'icon': None,
460+
'id': <ANY>,
461+
'labels': set({
462+
}),
463+
'name': None,
464+
'options': dict({
465+
}),
466+
'original_device_class': <BinarySensorDeviceClass.OCCUPANCY: 'occupancy'>,
467+
'original_icon': None,
468+
'original_name': 'Occupancy',
469+
'platform': 'matter',
470+
'previous_unique_id': None,
471+
'suggested_object_id': None,
472+
'supported_features': 0,
473+
'translation_key': None,
474+
'unique_id': '00000000000004D2-0000000000000004-MatterNodeDevice-1-ThermostatOccupancySensor-513-2',
475+
'unit_of_measurement': None,
476+
})
477+
# ---
478+
# name: test_binary_sensors[longan_link_thermostat][binary_sensor.longan_link_hvac_occupancy-state]
479+
StateSnapshot({
480+
'attributes': ReadOnlyDict({
481+
'device_class': 'occupancy',
482+
'friendly_name': 'Longan link HVAC Occupancy',
483+
}),
484+
'context': <ANY>,
485+
'entity_id': 'binary_sensor.longan_link_hvac_occupancy',
486+
'last_changed': <ANY>,
487+
'last_reported': <ANY>,
488+
'last_updated': <ANY>,
489+
'state': 'on',
490+
})
491+
# ---
443492
# name: test_binary_sensors[occupancy_sensor][binary_sensor.mock_occupancy_sensor_occupancy-entry]
444493
EntityRegistryEntrySnapshot({
445494
'aliases': set({
@@ -1320,55 +1369,6 @@
13201369
'state': 'off',
13211370
})
13221371
# ---
1323-
# name: test_binary_sensors[thermostat][binary_sensor.longan_link_hvac_occupancy-entry]
1324-
EntityRegistryEntrySnapshot({
1325-
'aliases': set({
1326-
}),
1327-
'area_id': None,
1328-
'capabilities': None,
1329-
'config_entry_id': <ANY>,
1330-
'config_subentry_id': <ANY>,
1331-
'device_class': None,
1332-
'device_id': <ANY>,
1333-
'disabled_by': None,
1334-
'domain': 'binary_sensor',
1335-
'entity_category': None,
1336-
'entity_id': 'binary_sensor.longan_link_hvac_occupancy',
1337-
'has_entity_name': True,
1338-
'hidden_by': None,
1339-
'icon': None,
1340-
'id': <ANY>,
1341-
'labels': set({
1342-
}),
1343-
'name': None,
1344-
'options': dict({
1345-
}),
1346-
'original_device_class': <BinarySensorDeviceClass.OCCUPANCY: 'occupancy'>,
1347-
'original_icon': None,
1348-
'original_name': 'Occupancy',
1349-
'platform': 'matter',
1350-
'previous_unique_id': None,
1351-
'suggested_object_id': None,
1352-
'supported_features': 0,
1353-
'translation_key': None,
1354-
'unique_id': '00000000000004D2-0000000000000004-MatterNodeDevice-1-ThermostatOccupancySensor-513-2',
1355-
'unit_of_measurement': None,
1356-
})
1357-
# ---
1358-
# name: test_binary_sensors[thermostat][binary_sensor.longan_link_hvac_occupancy-state]
1359-
StateSnapshot({
1360-
'attributes': ReadOnlyDict({
1361-
'device_class': 'occupancy',
1362-
'friendly_name': 'Longan link HVAC Occupancy',
1363-
}),
1364-
'context': <ANY>,
1365-
'entity_id': 'binary_sensor.longan_link_hvac_occupancy',
1366-
'last_changed': <ANY>,
1367-
'last_reported': <ANY>,
1368-
'last_updated': <ANY>,
1369-
'state': 'on',
1370-
})
1371-
# ---
13721372
# name: test_binary_sensors[valve][binary_sensor.valve_general_fault-entry]
13731373
EntityRegistryEntrySnapshot({
13741374
'aliases': set({

tests/components/matter/snapshots/test_button.ambr

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,55 @@
20002000
'state': 'unknown',
20012001
})
20022002
# ---
2003+
# name: test_buttons[longan_link_thermostat][button.longan_link_hvac_identify-entry]
2004+
EntityRegistryEntrySnapshot({
2005+
'aliases': set({
2006+
}),
2007+
'area_id': None,
2008+
'capabilities': None,
2009+
'config_entry_id': <ANY>,
2010+
'config_subentry_id': <ANY>,
2011+
'device_class': None,
2012+
'device_id': <ANY>,
2013+
'disabled_by': None,
2014+
'domain': 'button',
2015+
'entity_category': <EntityCategory.CONFIG: 'config'>,
2016+
'entity_id': 'button.longan_link_hvac_identify',
2017+
'has_entity_name': True,
2018+
'hidden_by': None,
2019+
'icon': None,
2020+
'id': <ANY>,
2021+
'labels': set({
2022+
}),
2023+
'name': None,
2024+
'options': dict({
2025+
}),
2026+
'original_device_class': <ButtonDeviceClass.IDENTIFY: 'identify'>,
2027+
'original_icon': None,
2028+
'original_name': 'Identify',
2029+
'platform': 'matter',
2030+
'previous_unique_id': None,
2031+
'suggested_object_id': None,
2032+
'supported_features': 0,
2033+
'translation_key': None,
2034+
'unique_id': '00000000000004D2-0000000000000004-MatterNodeDevice-1-IdentifyButton-3-1',
2035+
'unit_of_measurement': None,
2036+
})
2037+
# ---
2038+
# name: test_buttons[longan_link_thermostat][button.longan_link_hvac_identify-state]
2039+
StateSnapshot({
2040+
'attributes': ReadOnlyDict({
2041+
'device_class': 'identify',
2042+
'friendly_name': 'Longan link HVAC Identify',
2043+
}),
2044+
'context': <ANY>,
2045+
'entity_id': 'button.longan_link_hvac_identify',
2046+
'last_changed': <ANY>,
2047+
'last_reported': <ANY>,
2048+
'last_updated': <ANY>,
2049+
'state': 'unknown',
2050+
})
2051+
# ---
20032052
# name: test_buttons[microwave_oven][button.microwave_oven_pause-entry]
20042053
EntityRegistryEntrySnapshot({
20052054
'aliases': set({
@@ -3457,55 +3506,6 @@
34573506
'state': 'unknown',
34583507
})
34593508
# ---
3460-
# name: test_buttons[thermostat][button.longan_link_hvac_identify-entry]
3461-
EntityRegistryEntrySnapshot({
3462-
'aliases': set({
3463-
}),
3464-
'area_id': None,
3465-
'capabilities': None,
3466-
'config_entry_id': <ANY>,
3467-
'config_subentry_id': <ANY>,
3468-
'device_class': None,
3469-
'device_id': <ANY>,
3470-
'disabled_by': None,
3471-
'domain': 'button',
3472-
'entity_category': <EntityCategory.CONFIG: 'config'>,
3473-
'entity_id': 'button.longan_link_hvac_identify',
3474-
'has_entity_name': True,
3475-
'hidden_by': None,
3476-
'icon': None,
3477-
'id': <ANY>,
3478-
'labels': set({
3479-
}),
3480-
'name': None,
3481-
'options': dict({
3482-
}),
3483-
'original_device_class': <ButtonDeviceClass.IDENTIFY: 'identify'>,
3484-
'original_icon': None,
3485-
'original_name': 'Identify',
3486-
'platform': 'matter',
3487-
'previous_unique_id': None,
3488-
'suggested_object_id': None,
3489-
'supported_features': 0,
3490-
'translation_key': None,
3491-
'unique_id': '00000000000004D2-0000000000000004-MatterNodeDevice-1-IdentifyButton-3-1',
3492-
'unit_of_measurement': None,
3493-
})
3494-
# ---
3495-
# name: test_buttons[thermostat][button.longan_link_hvac_identify-state]
3496-
StateSnapshot({
3497-
'attributes': ReadOnlyDict({
3498-
'device_class': 'identify',
3499-
'friendly_name': 'Longan link HVAC Identify',
3500-
}),
3501-
'context': <ANY>,
3502-
'entity_id': 'button.longan_link_hvac_identify',
3503-
'last_changed': <ANY>,
3504-
'last_reported': <ANY>,
3505-
'last_updated': <ANY>,
3506-
'state': 'unknown',
3507-
})
3508-
# ---
35093509
# name: test_buttons[window_covering_pa_lift][button.longan_link_wncv_da01_identify-entry]
35103510
EntityRegistryEntrySnapshot({
35113511
'aliases': set({

0 commit comments

Comments
 (0)