ADS service: Enable use of templates for value (#20024)
parent
1c11394f5f
commit
aae6ff830a
|
@ -47,7 +47,7 @@ CONFIG_SCHEMA = vol.Schema({
|
||||||
SCHEMA_SERVICE_WRITE_DATA_BY_NAME = vol.Schema({
|
SCHEMA_SERVICE_WRITE_DATA_BY_NAME = vol.Schema({
|
||||||
vol.Required(CONF_ADS_TYPE):
|
vol.Required(CONF_ADS_TYPE):
|
||||||
vol.In([ADSTYPE_INT, ADSTYPE_UINT, ADSTYPE_BYTE, ADSTYPE_BOOL]),
|
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,
|
vol.Required(CONF_ADS_VAR): cv.string,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue