mirror of
https://github.com/home-assistant/core.git
synced 2026-11-02 03:31:34 -04:00
Migrate siren entity attributes to StrEnum (#174616)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# name: test_siren
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'available_tones': list([
|
||||
<SirenEntityCapabilityAttribute.AVAILABLE_TONES: 'available_tones'>: list([
|
||||
0,
|
||||
]),
|
||||
'friendly_name': 'Test',
|
||||
@@ -23,7 +23,7 @@
|
||||
]),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'available_tones': list([
|
||||
<SirenEntityCapabilityAttribute.AVAILABLE_TONES: 'available_tones'>: list([
|
||||
0,
|
||||
]),
|
||||
}),
|
||||
@@ -60,7 +60,7 @@
|
||||
# name: test_siren_change_default_tone
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'available_tones': list([
|
||||
<SirenEntityCapabilityAttribute.AVAILABLE_TONES: 'available_tones'>: list([
|
||||
0,
|
||||
]),
|
||||
'friendly_name': 'Test',
|
||||
@@ -81,7 +81,7 @@
|
||||
]),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'available_tones': list([
|
||||
<SirenEntityCapabilityAttribute.AVAILABLE_TONES: 'available_tones'>: list([
|
||||
0,
|
||||
]),
|
||||
}),
|
||||
@@ -118,7 +118,7 @@
|
||||
# name: test_siren_switching
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'available_tones': list([
|
||||
<SirenEntityCapabilityAttribute.AVAILABLE_TONES: 'available_tones'>: list([
|
||||
0,
|
||||
]),
|
||||
'friendly_name': 'Test',
|
||||
@@ -139,7 +139,7 @@
|
||||
]),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'available_tones': list([
|
||||
<SirenEntityCapabilityAttribute.AVAILABLE_TONES: 'available_tones'>: list([
|
||||
0,
|
||||
]),
|
||||
}),
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
]),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'available_tones': list([
|
||||
<SirenEntityCapabilityAttribute.AVAILABLE_TONES: 'available_tones'>: list([
|
||||
'ding',
|
||||
'motion',
|
||||
]),
|
||||
@@ -45,7 +45,7 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'attribution': 'Data provided by Ring.com',
|
||||
'available_tones': list([
|
||||
<SirenEntityCapabilityAttribute.AVAILABLE_TONES: 'available_tones'>: list([
|
||||
'ding',
|
||||
'motion',
|
||||
]),
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
]),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'available_tones': tuple(
|
||||
<SirenEntityCapabilityAttribute.AVAILABLE_TONES: 'available_tones'>: tuple(
|
||||
'Foo',
|
||||
'Bar',
|
||||
),
|
||||
@@ -79,7 +79,7 @@
|
||||
# name: test_states[siren.hub-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'available_tones': tuple(
|
||||
<SirenEntityCapabilityAttribute.AVAILABLE_TONES: 'available_tones'>: tuple(
|
||||
'Foo',
|
||||
'Bar',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user