Hi plugin dev's.
How are you handling a user deleting one of your devices from the device-list web interface? I know I can catch HSEvent and see that a device has been deleted and get its device ref, but how then do I know if it's one of mine? A call to hs.GetDeviceByRef(ref) returns nothing as the device has already been deleted.
Are you maintaining a list of all your plugin's devices in a collection in your plugin and then referencing the deleted device against that?
How are you handling a user deleting one of your devices from the device-list web interface? I know I can catch HSEvent and see that a device has been deleted and get its device ref, but how then do I know if it's one of mine? A call to hs.GetDeviceByRef(ref) returns nothing as the device has already been deleted.
Are you maintaining a list of all your plugin's devices in a collection in your plugin and then referencing the deleted device against that?
Comment