Merge pull request #5718 from benvm/modbus_write_register_array

Modbus write_register doesn't accept list
pull/5461/merge
andrey-git 2017-02-06 13:55:48 +02:00 committed by GitHub
commit 26a3ecc9d0
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ ATTR_VALUE = "value"
SERVICE_WRITE_REGISTER_SCHEMA = vol.Schema({
vol.Required(ATTR_UNIT): cv.positive_int,
vol.Required(ATTR_ADDRESS): cv.positive_int,
vol.Required(ATTR_VALUE): cv.positive_int
vol.Required(ATTR_VALUE): vol.All(cv.ensure_list, [cv.positive_int])
})