mirror of
https://github.com/home-assistant/core.git
synced 2026-11-06 13:41:27 -04:00
Update template select platform to new template entity framework (#162543)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'My template',
|
||||
'options': Wrapper([
|
||||
'options': list([
|
||||
'off',
|
||||
'on',
|
||||
'auto',
|
||||
|
||||
@@ -91,7 +91,6 @@ async def test_setup_config_entry(
|
||||
"template_type": "select",
|
||||
"state": "{{ 'on' }}",
|
||||
"options": "{{ ['off', 'on', 'auto'] }}",
|
||||
"select_option": [],
|
||||
},
|
||||
title="My template",
|
||||
)
|
||||
@@ -111,7 +110,6 @@ async def test_setup_config_entry(
|
||||
[
|
||||
{
|
||||
"state": "{{ 'a' }}",
|
||||
"select_option": {"service": "script.select_option"},
|
||||
"options": "{{ ['a', 'b'] }}",
|
||||
},
|
||||
],
|
||||
@@ -166,10 +164,6 @@ async def test_multiple_configs(hass: HomeAssistant) -> None:
|
||||
"state": "{{ 'a' }}",
|
||||
"select_option": {"service": "script.select_option"},
|
||||
},
|
||||
{
|
||||
"state": "{{ 'a' }}",
|
||||
"options": "{{ ['a', 'b'] }}",
|
||||
},
|
||||
],
|
||||
)
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
Reference in New Issue
Block a user