homebridge-tasmota-control 0.6.2-beta.2 → 0.6.2-beta.3

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": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "0.6.2-beta.2",
4
+ "version": "0.6.2-beta.3",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -288,7 +288,7 @@ class TasmotaDevice {
288
288
  relayService.setCharacteristic(Characteristic.ConfiguredName, serviceName);
289
289
  relayService.getCharacteristic(Characteristic.On)
290
290
  .onGet(async () => {
291
- const state = this.relaysStete[i];
291
+ const state = this.relaysStete[i] ?? false;
292
292
  const logInfo = this.disableLogInfo ? false : this.log(`Device: ${this.host} ${logName}, state: ${state ? 'ON' : 'OFF'}`);
293
293
  return state;
294
294
  })