mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Use TemplateSelector on imap custom imap_content event template config option (#94429)
Use TemplateSelector for imap custom template
This commit is contained in:
parent
acaa9ef9de
commit
3adea14ddb
@ -26,9 +26,8 @@ from homeassistant.helpers.selector import (
|
||||
SelectSelector,
|
||||
SelectSelectorConfig,
|
||||
SelectSelectorMode,
|
||||
TextSelector,
|
||||
TextSelectorConfig,
|
||||
TextSelectorType,
|
||||
TemplateSelector,
|
||||
TemplateSelectorConfig,
|
||||
)
|
||||
from homeassistant.helpers.template import Template
|
||||
from homeassistant.util.ssl import SSLCipherList
|
||||
@ -57,9 +56,7 @@ CIPHER_SELECTOR = SelectSelector(
|
||||
translation_key=CONF_SSL_CIPHER_LIST,
|
||||
)
|
||||
)
|
||||
TEMPLATE_SELECTOR = TextSelector(
|
||||
TextSelectorConfig(type=TextSelectorType.TEXT, multiline=True)
|
||||
)
|
||||
TEMPLATE_SELECTOR = TemplateSelector(TemplateSelectorConfig())
|
||||
|
||||
CONFIG_SCHEMA = vol.Schema(
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user