diff --git a/Quirky-Aros-Device.groovy b/Quirky-Aros-Device.groovy index bbafaaf..c4d5874 100644 --- a/Quirky-Aros-Device.groovy +++ b/Quirky-Aros-Device.groovy @@ -364,7 +364,13 @@ def off() { def uninstalled() { log.debug "Executing 'uninstall' in child" - parent.uninstallChildDevice(this) + try { + if (parent) { + parent.uninstallChildDevice(this) + } + } catch (e) { + logger.warn "Exception in Quirky Aros uninstall: $e" + } } def poll() { diff --git a/Quirky-Connect-Service-Manager.groovy b/Quirky-Connect-Service-Manager.groovy index da5a456..e382d71 100644 --- a/Quirky-Connect-Service-Manager.groovy +++ b/Quirky-Connect-Service-Manager.groovy @@ -447,11 +447,13 @@ def uninstalled() { log.debug "In uninstalled" - removeWinkSubscriptions() - - removeChildDevices(getChildDevices()) - - unschedule() + try { + removeWinkSubscriptions() + removeChildDevices(getChildDevices()) + unschedule() + } catch (e) { + logger.warn "Exception: Quirky Service Manager uninstall: $e" + } } def removeWinkSubscriptions() diff --git a/Quirky-Eggtray-Device.groovy b/Quirky-Eggtray-Device.groovy index f353cc4..d255e3e 100644 --- a/Quirky-Eggtray-Device.groovy +++ b/Quirky-Eggtray-Device.groovy @@ -101,7 +101,13 @@ def eggReport() { def uninstalled() { log.debug "Executing 'uninstall' in child" - parent.uninstallChildDevice(this) + try { + if (parent) { + parent.uninstallChildDevice(this) + } + } catch (e) { + logger.warn "Exception in Quirky Eggtray uninstall: $e" + } } def poll() { diff --git a/Quirky-Nimbus-Device.groovy b/Quirky-Nimbus-Device.groovy index fd03d4d..4e9dddd 100644 --- a/Quirky-Nimbus-Device.groovy +++ b/Quirky-Nimbus-Device.groovy @@ -74,7 +74,13 @@ def parse(description) { def uninstalled() { log.debug "Executing 'uninstall' in child" - parent.uninstallChildDevice(this) + try { + if (parent) { + parent.uninstallChildDevice(this) + } + } catch (e) { + logger.warn "Exception in Quirky Nimbus uninstall: $e" + } } def poll() { diff --git a/Quirky-Pivot-Power-Genius-Device.groovy b/Quirky-Pivot-Power-Genius-Device.groovy index 3ea22f1..9e7b890 100644 --- a/Quirky-Pivot-Power-Genius-Device.groovy +++ b/Quirky-Pivot-Power-Genius-Device.groovy @@ -83,7 +83,13 @@ def off() { def uninstalled() { log.debug "Executing 'uninstall' in child" - parent.uninstallChildDevice(this) + try { + if (parent) { + parent.uninstallChildDevice(this) + } + } catch (e) { + logger.warn "Exception in Quirky Power Genuis uninstall: $e" + } } def poll() { diff --git a/Quirky-Porkfolio-Device.groovy b/Quirky-Porkfolio-Device.groovy index 6f5ea10..cd02346 100644 --- a/Quirky-Porkfolio-Device.groovy +++ b/Quirky-Porkfolio-Device.groovy @@ -75,8 +75,14 @@ def parse(description) { } def uninstalled() { - log.debug "Executing 'uninstall' in child" - parent.uninstallChildDevice(this) + log.debug "Executing 'uninstall' in child" + try { + if (parent) { + parent.uninstallChildDevice(this) + } + } catch (e) { + logger.warn "Exception in Quirky Porkfolio uninstall: $e" + } } def poll() { diff --git a/Quirky-Refuel-Device.groovy b/Quirky-Refuel-Device.groovy index 43c9842..b4d3f69 100644 --- a/Quirky-Refuel-Device.groovy +++ b/Quirky-Refuel-Device.groovy @@ -74,7 +74,13 @@ def parse(String description) { def uninstalled() { log.debug "Executing 'uninstall' in child" - parent.uninstallChildDevice(this) + try { + if (parent) { + parent.uninstallChildDevice(this) + } + } catch (e) { + logger.warn "Exception in Quirky Refuel uninstall: $e" + } } def poll() { diff --git a/Quirky-Spotter-Device.groovy b/Quirky-Spotter-Device.groovy index 2411dd7..edbfba3 100644 --- a/Quirky-Spotter-Device.groovy +++ b/Quirky-Spotter-Device.groovy @@ -115,7 +115,13 @@ def parse(description) { def uninstalled() { log.debug "Executing 'uninstall' in child" - parent.uninstallChildDevice(this) + try { + if (parent) { + parent.uninstallChildDevice(this) + } + } catch (e) { + logger.warn "Exception in Quirky Spotter uninstall: $e" + } } def poll() {