added deinit() method
This commit is contained in:
parent
fe24d07a7e
commit
992c5cba10
@ -41,6 +41,14 @@ class HCControlBase extends EventEmitter {
|
|||||||
return Promise.resolve();
|
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
|
* Updates the state by polling the controlled device
|
||||||
* @returns A promise which resolves when the state has been pulled
|
* @returns A promise which resolves when the state has been pulled
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user