Use TemplateSelector on imap custom imap_content event template config option (#94429)

Use TemplateSelector for imap custom template
This commit is contained in:
Jan Bouwhuis 2023-06-12 06:30:23 +02:00 committed by GitHub
parent acaa9ef9de
commit 3adea14ddb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(
{