hass-core/tests/components/lektrico/snapshots/test_button.ambr
Lektri.co 2e3aec3184
Add button platform to the Lektrico integration (#125897)
* Add lektrico buttons.

* Add DeviceClass.RESTART, remove exception, update description.

* Remove translation_key=reboot.

* Add button in strings.json.

* Fix button test with new snapshot.

* Remove remove button from strings.json.

* Delete all snapshots.

* Add new snapshots.

* Update tests/components/lektrico/snapshots/test_button.ambr

* Update tests/components/lektrico/snapshots/test_button.ambr

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-13 15:13:49 +02:00

140 lines
3.7 KiB
Text

# serializer version: 1
# name: test_all_entities[button.1p7k_500006_charge_start-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'button',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'button.1p7k_500006_charge_start',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Charge start',
'platform': 'lektrico',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'charge_start',
'unique_id': '500006-charge_start',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[button.1p7k_500006_charge_start-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': '1p7k_500006 Charge start',
}),
'context': <ANY>,
'entity_id': 'button.1p7k_500006_charge_start',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
})
# ---
# name: test_all_entities[button.1p7k_500006_charge_stop-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'button',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'button.1p7k_500006_charge_stop',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Charge stop',
'platform': 'lektrico',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'charge_stop',
'unique_id': '500006-charge_stop',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[button.1p7k_500006_charge_stop-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': '1p7k_500006 Charge stop',
}),
'context': <ANY>,
'entity_id': 'button.1p7k_500006_charge_stop',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
})
# ---
# name: test_all_entities[button.1p7k_500006_restart-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'button',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'button.1p7k_500006_restart',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <ButtonDeviceClass.RESTART: 'restart'>,
'original_icon': None,
'original_name': 'Restart',
'platform': 'lektrico',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': '500006-reboot',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[button.1p7k_500006_restart-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'restart',
'friendly_name': '1p7k_500006 Restart',
}),
'context': <ANY>,
'entity_id': 'button.1p7k_500006_restart',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
})
# ---