Skip to content

Commit fd05b0b

Browse files
committed
Save updates
1 parent 6fc0c36 commit fd05b0b

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# serializer version: 1
2+
# name: test_adam_button_snapshot[platforms0][button.adam_reboot-entry]
3+
EntityRegistryEntrySnapshot({
4+
'aliases': set({
5+
}),
6+
'area_id': None,
7+
'capabilities': None,
8+
'config_entry_id': <ANY>,
9+
'config_subentry_id': <ANY>,
10+
'device_class': None,
11+
'device_id': <ANY>,
12+
'disabled_by': None,
13+
'domain': 'button',
14+
'entity_category': <EntityCategory.CONFIG: 'config'>,
15+
'entity_id': 'button.adam_reboot',
16+
'has_entity_name': True,
17+
'hidden_by': None,
18+
'icon': None,
19+
'id': <ANY>,
20+
'labels': set({
21+
}),
22+
'name': None,
23+
'options': dict({
24+
}),
25+
'original_device_class': <ButtonDeviceClass.RESTART: 'restart'>,
26+
'original_icon': None,
27+
'original_name': 'Reboot',
28+
'platform': 'plugwise',
29+
'previous_unique_id': None,
30+
'suggested_object_id': None,
31+
'supported_features': 0,
32+
'translation_key': 'reboot',
33+
'unique_id': 'fe799307f1624099878210aa0b9f1475-reboot',
34+
'unit_of_measurement': None,
35+
})
36+
# ---
37+
# name: test_adam_button_snapshot[platforms0][button.adam_reboot-state]
38+
StateSnapshot({
39+
'attributes': ReadOnlyDict({
40+
'device_class': 'restart',
41+
'friendly_name': 'Adam Reboot',
42+
}),
43+
'context': <ANY>,
44+
'entity_id': 'button.adam_reboot',
45+
'last_changed': <ANY>,
46+
'last_reported': <ANY>,
47+
'last_updated': <ANY>,
48+
'state': 'unknown',
49+
})
50+
# ---

tests/components/plugwise/test_button.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
from unittest.mock import MagicMock
44

5-
from syrupy.assertion import SnapshotAssertion
65
import pytest
6+
from syrupy.assertion import SnapshotAssertion
7+
78
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS
89
from homeassistant.const import ATTR_ENTITY_ID
910
from homeassistant.core import HomeAssistant

0 commit comments

Comments
 (0)