arrival: Keep 'read attr' messages from being turned into events

Previously parse was returning null which causes the platform to create an event
using the message passed to parse. We don't want that to happen so return
an empty list instead.

Resolves:
    https://smartthings.atlassian.net/browse/SMJN-38
This commit is contained in:
Tom Manley
2016-01-14 15:34:08 -06:00
parent 7429ecc83b
commit d9ab3bca00

View File

@@ -76,6 +76,8 @@ def parse(String description) {
if (description?.startsWith('read attr -')) {
handleReportAttributeMessage(description)
}
return []
}
private handleReportAttributeMessage(String description) {