mirror of
https://github.com/home-assistant/core.git
synced 2026-09-27 09:58:07 -04:00
Add Matter BatChargeState to mock_battery_storage test fixture (#183040)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7ededf6162
commit
12c62c085e
@@ -216,13 +216,14 @@
|
||||
"1/47/13": 7200,
|
||||
"1/47/18": [],
|
||||
"1/47/24": 100000,
|
||||
"1/47/26": 1,
|
||||
"1/47/27": 1800,
|
||||
"1/47/29": null,
|
||||
"1/47/30": null,
|
||||
"1/47/65528": [],
|
||||
"1/47/65529": [],
|
||||
"1/47/65531": [
|
||||
65532, 65533, 0, 1, 2, 31, 5, 11, 12, 13, 18, 24, 27, 29, 30, 65528,
|
||||
65532, 65533, 0, 1, 2, 31, 5, 11, 12, 13, 18, 24, 26, 27, 29, 30, 65528,
|
||||
65529, 65531
|
||||
],
|
||||
"1/156/65532": 0,
|
||||
|
||||
@@ -17954,6 +17954,68 @@
|
||||
'state': '90',
|
||||
})
|
||||
# ---
|
||||
# name: test_sensors[mock_battery_storage][sensor.mock_battery_storage_battery_charge_state-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': list([
|
||||
None,
|
||||
]),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
|
||||
'not_charging',
|
||||
'charging',
|
||||
'full_charge',
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
||||
'entity_id': 'sensor.mock_battery_storage_battery_charge_state',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'object_id_base': 'Battery charge state',
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.ENUM: 'enum'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Battery charge state',
|
||||
'platform': 'matter',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'battery_charge_state',
|
||||
'unique_id': '00000000000004D2-0000000000000019-MatterNodeDevice-1-PowerSourceBatChargeState-47-26',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_sensors[mock_battery_storage][sensor.mock_battery_storage_battery_charge_state-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
|
||||
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Battery Storage Battery charge state',
|
||||
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
|
||||
'not_charging',
|
||||
'charging',
|
||||
'full_charge',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.mock_battery_storage_battery_charge_state',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'charging',
|
||||
})
|
||||
# ---
|
||||
# name: test_sensors[mock_battery_storage][sensor.mock_battery_storage_battery_voltage-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': list([
|
||||
|
||||
Reference in New Issue
Block a user