This commit is contained in:
Iruka 2025-01-03 17:23:50 +08:00
commit b59f72b9f3
6 changed files with 6 additions and 6 deletions

View File

@ -255,7 +255,7 @@
this.mqttSubscribes(this.topics);
getApp().addMsgEvent("mqtt", "mqtt_head", function(e) {
if (e.type == "state") {
that.mqttConnected = e.connected;
this.mqttConnected = e.connected;
} else if (e.type == "msg") {
this.itemProperty = e.data;
}

View File

@ -226,7 +226,7 @@
this.mqttSubscribes(this.topics);
getApp().addMsgEvent("mqtt", "mqtt_head", function(e) {
if (e.type == "state") {
that.mqttConnected = e.connected;
this.mqttConnected = e.connected;
} else if (e.type == "msg") {
this.itemProperty = e.data;
}

View File

@ -215,7 +215,7 @@
this.mqttSubscribes(this.topics);
getApp().addMsgEvent("mqtt", "mqtt_head", function(e) {
if (e.type == "state") {
that.mqttConnected = e.connected;
this.mqttConnected = e.connected;
} else if (e.type == "msg") {
this.itemProperty = e.data;
}

View File

@ -463,7 +463,7 @@
this.mqttSubscribes(this.topics);
getApp().addMsgEvent("mqtt", "mqtt_fertilizer", function(e) {
if (e.type == "state") {
that.mqttConnected = e.connected;
this.mqttConnected = e.connected;
} else if (e.type == "msg") {
this.itemProperty = e.data;
this.devicePropertyStatus();

View File

@ -407,7 +407,7 @@
this.mqttSubscribes(this.topics);
getApp().addMsgEvent("mqtt", "mqtt_fertilizerKL", function(e) {
if (e.type == "state") {
that.mqttConnected = e.connected;
this.mqttConnected = e.connected;
} else if (e.type == "msg") {
this.itemProperty = e.data;
this.devicePropertyStatus();

View File

@ -353,7 +353,7 @@
this.mqttSubscribes(this.topics);
getApp().addMsgEvent("mqtt", "mqtt_head", function(e) {
if (e.type == "state") {
that.mqttConnected = e.connected;
this.mqttConnected = e.connected;
} else if (e.type == "msg") {
this.itemProperty = e.data;
this.devicePropertyStatus();