No signature of method for a HomeSeer HS-LS100+ Leak Sensor

I have 6 of the above. I'm using the DH created by HomeSeer. I am receiving the following error:

It is coming from this section of code:

private sendResponse(cmds) {
logTrace "sendResponse $cmds"
def actions = []
cmds?.each { cmd ->
actions << new hubitat.device.HubAction(cmd)
}
sendHubCommand(actions)
return []
}

In this code:

Would anyone like to try and explain how I can fix this?

Thank you!

After some education on on arrays from @krlaframboise, I changed the above to the following and now I’m not getting the error anymore:

> private sendResponse(cmds) {

logTrace “sendResponse $cmds”
def actions = []
cmds?.each { cmd ->
actions << new hubitat.device.HubAction(cmd)
}
if (actions) {
sendHubCommand(actions)
}
return []
}