Update template select platform to new template entity framework (#162543)

This commit is contained in:
Petro31
2026-02-08 22:27:49 +01:00
committed by GitHub
parent 3c66a1b35d
commit 24e8208deb
3 changed files with 22 additions and 71 deletions
@@ -3,7 +3,7 @@
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'My template',
'options': Wrapper([
'options': list([
'off',
'on',
'auto',
-6
View File
@@ -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(