hass-core/tests/components/vicare/snapshots/test_button.ambr
Christopher Fenner 349ea35dc3
Fix device identifier in ViCare integration (#124483)
* use correct serial

* add migration handler

* adjust init call

* add missing types

* adjust init call

* adjust init call

* adjust init call

* adjust init call

* Update types.py

* fix loop

* fix loop

* fix parameter order

* align parameter naming

* remove comment

* correct init

* update

* Update types.py

* correct merge

* revert type change

* add test case

* add helper

* add test case

* update snapshot

* add snapshot

* add device.serial data point

* fix device unique id

* update snapshot

* add comments

* update nmigration

* fix missing parameter

* move static parameters

* fix circuit access

* update device.serial

* update snapshots

* remove test case

* Update binary_sensor.py

* convert climate entity

* Update entity.py

* update snapshot

* use snake case

* add migration test

* enhance test case

* add test case

* Apply suggestions from code review

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-04 18:41:20 +02:00

47 lines
1.3 KiB
Text

# serializer version: 1
# name: test_all_entities[button.model0_activate_one_time_charge-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.model0_activate_one_time_charge',
'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': 'Activate one-time charge',
'platform': 'vicare',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'activate_onetimecharge',
'unique_id': 'gateway0_deviceSerialVitodens300W-activate_onetimecharge',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[button.model0_activate_one_time_charge-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'model0 Activate one-time charge',
}),
'context': <ANY>,
'entity_id': 'button.model0_activate_one_time_charge',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
})
# ---