mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-17 10:58:31 -07:00
028792e5b4
* Implement extension loading api * Fix frontend tests * Implement saving and unloading extensions * Save after loading * Add tests * Fix coverage * Refactor frontent test calls * Update controller.js * Review fixes * Update utils.js * Rename list topic Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
13 lines
304 B
JavaScript
13 lines
304 B
JavaScript
class Example {
|
|
constructor(zigbee, mqtt, state, publishEntityState, eventBus) {
|
|
this.mqtt = mqtt;
|
|
this.mqtt.publish('example/extension', 'call from constructor')
|
|
}
|
|
|
|
onMQTTConnected() {
|
|
this.mqtt.publish('example/extension', 'test')
|
|
}
|
|
}
|
|
|
|
module.exports = Example;
|