diff --git a/ControlBase.js b/ControlBase.js index a927695..7eb50f8 100644 --- a/ControlBase.js +++ b/ControlBase.js @@ -41,6 +41,14 @@ class HCControlBase extends EventEmitter { return Promise.resolve(); } + /** + * Run some sort of asynchronous de-initialization/cleanup + * @returns A promise which resolves when the de-initialization is complete + */ + deinit() { + return Promise.resolve(); + } + /** * Updates the state by polling the controlled device * @returns A promise which resolves when the state has been pulled