homebridge-denon-tv 5.3.3 → 5.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Denon TV",
3
3
  "name": "homebridge-denon-tv",
4
- "version": "5.3.3",
4
+ "version": "5.3.4",
5
5
  "description": "Homebridge plugin to control Denon/Marantz AV Receivers.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/mainzone.js CHANGED
@@ -195,8 +195,11 @@ class MainZone extends EventEmitter {
195
195
  .on('debug', (debug) => {
196
196
  this.emit('debug', debug);
197
197
  })
198
+ .on('warn', (warn) => {
199
+ this.emit('warn', warn);
200
+ })
198
201
  .on('error', (error) => {
199
- this.emit('warn', error);
202
+ this.emit('error', error);
200
203
  });
201
204
  }
202
205
 
@@ -230,8 +233,11 @@ class MainZone extends EventEmitter {
230
233
  .on('debug', (debug) => {
231
234
  this.emit('debug', debug);
232
235
  })
236
+ .on('warn', (warn) => {
237
+ this.emit('warn', warn);
238
+ })
233
239
  .on('error', (error) => {
234
- this.emit('warn', error);
240
+ this.emit('error', error);
235
241
  });
236
242
  };
237
243
 
@@ -1028,10 +1034,10 @@ class MainZone extends EventEmitter {
1028
1034
  .on('debug', (debug) => {
1029
1035
  this.emit('debug', debug);
1030
1036
  })
1031
- .on('warn', async (warn) => {
1037
+ .on('warn', (warn) => {
1032
1038
  this.emit('warn', warn);
1033
1039
  })
1034
- .on('error', async (error) => {
1040
+ .on('error', (error) => {
1035
1041
  this.emit('error', error);
1036
1042
  })
1037
1043
  .on('restFul', (path, data) => {
package/src/mqtt.js CHANGED
@@ -32,11 +32,11 @@ class Mqtt extends EventEmitter {
32
32
  const value = Object.values(subscribedMessage)[0];
33
33
  this.emit('set', key, value);
34
34
  } catch (error) {
35
- this.emit('error', `MQTT Parse message error: ${error}`);
35
+ this.emit('warn', `MQTT Parse message error: ${error}`);
36
36
  };
37
37
  });
38
38
  } catch (error) {
39
- this.emit('error', `MQTT Connect error: ${error}`);
39
+ this.emit('warn', `MQTT Connect error: ${error}`);
40
40
  };
41
41
  }).on('publish', async (topic, message) => {
42
42
  try {
@@ -45,7 +45,7 @@ class Mqtt extends EventEmitter {
45
45
  await this.mqttClient.publish(fullTopic, publishMessage);
46
46
  const emitDebug = config.debug ? this.emit('debug', `MQTT Publish topic: ${fullTopic}, message: ${publishMessage}`) : false;
47
47
  } catch (error) {
48
- this.emit('error', `MQTT Publish error: ${error}`);
48
+ this.emit('warn', `MQTT Publish error: ${error}`);
49
49
  };
50
50
  });
51
51
 
package/src/restful.js CHANGED
@@ -37,7 +37,7 @@ class RestFul extends EventEmitter {
37
37
  this.emit('set', key, value);
38
38
  res.send('OK');
39
39
  } catch (error) {
40
- this.emit('error', `RESTFul Parse object error: ${error}`);
40
+ this.emit('warn', `RESTFul Parse object error: ${error}`);
41
41
  };
42
42
  });
43
43
 
@@ -46,7 +46,7 @@ class RestFul extends EventEmitter {
46
46
  });
47
47
 
48
48
  } catch (error) {
49
- this.emit('error', `RESTful Connect error: ${error}`)
49
+ this.emit('warn', `RESTful Connect error: ${error}`)
50
50
  }
51
51
  };
52
52
 
@@ -65,7 +65,7 @@ class RestFul extends EventEmitter {
65
65
  this.restFulData.surround = data;
66
66
  break;
67
67
  default:
68
- this.emit('error', `RESTFul update unknown path: ${path}, data: ${data}`)
68
+ this.emit('warn', `RESTFul update unknown path: ${path}, data: ${data}`)
69
69
  break;
70
70
  };
71
71
  const emitDebug = this.restFulDebug ? this.emit('debug', `RESTFul update path: ${path}, data: ${data}`) : false;
package/src/surround.js CHANGED
@@ -180,8 +180,11 @@ class Surround extends EventEmitter {
180
180
  .on('debug', (debug) => {
181
181
  this.emit('debug', debug);
182
182
  })
183
+ .on('warn', (warn) => {
184
+ this.emit('warn', warn);
185
+ })
183
186
  .on('error', (error) => {
184
- this.emit('warn', error);
187
+ this.emit('error', error);
185
188
  });
186
189
  }
187
190
 
@@ -215,8 +218,11 @@ class Surround extends EventEmitter {
215
218
  .on('debug', (debug) => {
216
219
  this.emit('debug', debug);
217
220
  })
221
+ .on('warn', (warn) => {
222
+ this.emit('warn', warn);
223
+ })
218
224
  .on('error', (error) => {
219
- this.emit('warn', error);
225
+ this.emit('error', error);
220
226
  });
221
227
  };
222
228
 
@@ -878,10 +884,10 @@ class Surround extends EventEmitter {
878
884
  .on('debug', (debug) => {
879
885
  this.emit('debug', debug);
880
886
  })
881
- .on('warn', async (warn) => {
887
+ .on('warn', (warn) => {
882
888
  this.emit('warn', warn);
883
889
  })
884
- .on('error', async (error) => {
890
+ .on('error', (error) => {
885
891
  this.emit('error', error);
886
892
  })
887
893
  .on('restFul', (path, data) => {
package/src/zone2.js CHANGED
@@ -199,8 +199,11 @@ class Zone2 extends EventEmitter {
199
199
  .on('debug', (debug) => {
200
200
  this.emit('debug', debug);
201
201
  })
202
+ .on('warn', (warn) => {
203
+ this.emit('warn', warn);
204
+ })
202
205
  .on('error', (error) => {
203
- this.emit('warn', error);
206
+ this.emit('error', error);
204
207
  });
205
208
  }
206
209
 
@@ -234,8 +237,11 @@ class Zone2 extends EventEmitter {
234
237
  .on('debug', (debug) => {
235
238
  this.emit('debug', debug);
236
239
  })
240
+ .on('warn', (warn) => {
241
+ this.emit('warn', warn);
242
+ })
237
243
  .on('error', (error) => {
238
- this.emit('warn', error);
244
+ this.emit('error', error);
239
245
  });
240
246
  };
241
247
 
@@ -936,10 +942,10 @@ class Zone2 extends EventEmitter {
936
942
  .on('debug', (debug) => {
937
943
  this.emit('debug', debug);
938
944
  })
939
- .on('warn', async (warn) => {
945
+ .on('warn', (warn) => {
940
946
  this.emit('warn', warn);
941
947
  })
942
- .on('error', async (error) => {
948
+ .on('error', (error) => {
943
949
  this.emit('error', error);
944
950
  })
945
951
  .on('restFul', (path, data) => {
package/src/zone3.js CHANGED
@@ -199,8 +199,11 @@ class Zone3 extends EventEmitter {
199
199
  .on('debug', (debug) => {
200
200
  this.emit('debug', debug);
201
201
  })
202
+ .on('warn', (warn) => {
203
+ this.emit('warn', warn);
204
+ })
202
205
  .on('error', (error) => {
203
- this.emit('warn', error);
206
+ this.emit('error', error);
204
207
  });
205
208
  }
206
209
 
@@ -234,8 +237,11 @@ class Zone3 extends EventEmitter {
234
237
  .on('debug', (debug) => {
235
238
  this.emit('debug', debug);
236
239
  })
240
+ .on('warn', (warn) => {
241
+ this.emit('warn', warn);
242
+ })
237
243
  .on('error', (error) => {
238
- this.emit('warn', error);
244
+ this.emit('error', error);
239
245
  });
240
246
  };
241
247
 
@@ -935,10 +941,10 @@ class Zone3 extends EventEmitter {
935
941
  .on('debug', (debug) => {
936
942
  this.emit('debug', debug);
937
943
  })
938
- .on('warn', async (warn) => {
944
+ .on('warn', (warn) => {
939
945
  this.emit('warn', warn);
940
946
  })
941
- .on('error', async (error) => {
947
+ .on('error', (error) => {
942
948
  this.emit('error', error);
943
949
  })
944
950
  .on('restFul', (path, data) => {