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 +1 -1
- package/src/tasmotadevice.js +1 -1
package/package.json
CHANGED
package/src/tasmotadevice.js
CHANGED
|
@@ -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
|
})
|