added deinit() method

This commit is contained in:
Jan Scheiper 2020-08-06 00:04:35 +02:00
parent fe24d07a7e
commit 992c5cba10

View File

@ -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