Fix bug in extractor script
[smartthings-infrastructure.git] / Extractor / ExtractorScript.py
index 4bc7306..9e0f1c1 100644 (file)
@@ -297,6 +297,8 @@ def ExtractEvents(extractedEvents):
                                event = open("eventSimulator/beaconLeftEvent.groovy", "r")
                        for line in event:
                                extractedEvents.write("\t\t" + line)
+
+                        extractedEvents.write("\t\t\t}\n")
                        event.close()
                elif eventList[i] == "presence.present": #Case for Touched event
                        event = open("eventSimulator/presencePresencePresentEvent.groovy", "r")