mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-06-30 00:51:38 +00:00
045ee573a0
* Update * Updates * More refactoringzzz * Bindoo * Loadz of typescripting * Logga * Updates * Updates * Updates * Updates * cleanup * updates * Fix coverage * Fixes * Updates * Updates
13 lines
294 B
JavaScript
13 lines
294 B
JavaScript
class Example {
|
|
constructor(zigbee, mqtt, state, publishEntityState, eventBus) {
|
|
this.mqtt = mqtt;
|
|
this.mqtt.publish('example/extension', 'call from constructor')
|
|
}
|
|
|
|
start() {
|
|
this.mqtt.publish('example/extension', 'test')
|
|
}
|
|
}
|
|
|
|
module.exports = Example;
|