From d9ab3bca00f2fe80036dab02708cb2e7bc583f5c Mon Sep 17 00:00:00 2001 From: Tom Manley Date: Thu, 14 Jan 2016 15:34:08 -0600 Subject: [PATCH] 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 --- .../smartthings/arrival-sensor-ha.src/arrival-sensor-ha.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devicetypes/smartthings/arrival-sensor-ha.src/arrival-sensor-ha.groovy b/devicetypes/smartthings/arrival-sensor-ha.src/arrival-sensor-ha.groovy index d9cdcc2..62519f2 100644 --- a/devicetypes/smartthings/arrival-sensor-ha.src/arrival-sensor-ha.groovy +++ b/devicetypes/smartthings/arrival-sensor-ha.src/arrival-sensor-ha.groovy @@ -76,6 +76,8 @@ def parse(String description) { if (description?.startsWith('read attr -')) { handleReportAttributeMessage(description) } + + return [] } private handleReportAttributeMessage(String description) {