mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-02 16:59:37 +00:00
Improve tests.
This commit is contained in:
+4
-2
@@ -126,6 +126,8 @@ class Controller {
|
||||
}
|
||||
|
||||
start() {
|
||||
this.state.start();
|
||||
|
||||
this.startupLogVersion(() => {
|
||||
this.zigbee.start(this.onZigbeeMessage, (error) => {
|
||||
if (error) {
|
||||
@@ -142,7 +144,7 @@ class Controller {
|
||||
this.extensions.filter((e) => e.stop).forEach((e) => e.stop());
|
||||
|
||||
// Wrap-up
|
||||
this.state.save();
|
||||
this.state.stop();
|
||||
this.mqtt.disconnect();
|
||||
this.zigbee.stop(callback);
|
||||
}
|
||||
@@ -237,7 +239,7 @@ class Controller {
|
||||
|
||||
return {
|
||||
ieeeAddr,
|
||||
friendlyName: deviceSettings.friendly_name || '',
|
||||
friendlyName: deviceSettings ? (deviceSettings.friendly_name || '') : '',
|
||||
type,
|
||||
nwkAddr,
|
||||
manufId,
|
||||
|
||||
Reference in New Issue
Block a user