mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-04 02:51:44 +00:00
30227a13ae
* chore: Implement prettier * Run prettier * fix lint * process feedback * process feedback
13 lines
296 B
JavaScript
13 lines
296 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;
|