ADS service: Enable use of templates for value (#20024)

This commit is contained in:
carstenschroeder 2019-01-13 14:23:22 +01:00 committed by Martin Hjelmare
parent 1c11394f5f
commit aae6ff830a
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ CONFIG_SCHEMA = vol.Schema({
SCHEMA_SERVICE_WRITE_DATA_BY_NAME = vol.Schema({
vol.Required(CONF_ADS_TYPE):
vol.In([ADSTYPE_INT, ADSTYPE_UINT, ADSTYPE_BYTE, ADSTYPE_BOOL]),
vol.Required(CONF_ADS_VALUE): cv.match_all,
vol.Required(CONF_ADS_VALUE): vol.Coerce(int),
vol.Required(CONF_ADS_VAR): cv.string,
})