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, SelectSelector,
SelectSelectorConfig, SelectSelectorConfig,
SelectSelectorMode, SelectSelectorMode,
TextSelector, TemplateSelector,
TextSelectorConfig, TemplateSelectorConfig,
TextSelectorType,
) )
from homeassistant.helpers.template import Template from homeassistant.helpers.template import Template
from homeassistant.util.ssl import SSLCipherList from homeassistant.util.ssl import SSLCipherList
@ -57,9 +56,7 @@ CIPHER_SELECTOR = SelectSelector(
translation_key=CONF_SSL_CIPHER_LIST, translation_key=CONF_SSL_CIPHER_LIST,
) )
) )
TEMPLATE_SELECTOR = TextSelector( TEMPLATE_SELECTOR = TemplateSelector(TemplateSelectorConfig())
TextSelectorConfig(type=TextSelectorType.TEXT, multiline=True)
)
CONFIG_SCHEMA = vol.Schema( CONFIG_SCHEMA = vol.Schema(
{ {