UNPKG

homebridge-levoit-humidifiers

Version:
21 lines 553 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const characteristic = { get: async function () { await this.device.updateInfo(); if (this.device.isOn) { return true; } else { return false; } }, set: async function (value) { const boolValue = value == 1; if (boolValue !== this.device.isOn) { await this.device.setPower(boolValue); } }, }; exports.default = characteristic; //# sourceMappingURL=Active.js.map