Since the ST infrastructure upgrade on Oct 28th, my smart app started throwing an exception when executing the following code:
if (devices.contact) unsubscribe(devices.contact)
From the logs:
9:16:45 PM PDT: error org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [physicalgraph.app.EventSubscription#16c8b7d8-65f2-4f3a-b431-c43201736fab] @ line 722
There were no code changes in the smart app for the past couple of weeks.