mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-30 14:13:06 +01:00
Properly create event for outlet power
We were not properly creating the event before returning it, causing us to not actually generate the power event. This resolves: https://smartthings.atlassian.net/browse/PROB-1518
This commit is contained in:
@@ -79,7 +79,8 @@ def parse(String description) {
|
||||
*/
|
||||
event.value = event.value / 10
|
||||
}
|
||||
return event
|
||||
|
||||
return event ? createEvent(event) : event
|
||||
}
|
||||
|
||||
def setLevel(value) {
|
||||
|
||||
Reference in New Issue
Block a user