Merge pull request #5718 from benvm/modbus_write_register_array
Modbus write_register doesn't accept listpull/5461/merge
commit
26a3ecc9d0
|
@ -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])
|
||||
})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue