UNPKG

homebridge-philips-hue-sync-box

Version:
19 lines 537 B
import { SyncBoxDevice } from './base.js'; export class SwitchDevice extends SyncBoxDevice { platform; accessory; state; constructor(platform, accessory, state) { super(platform, accessory, state); this.platform = platform; this.accessory = accessory; this.state = state; } getPowerCharacteristic() { return this.platform.api.hap.Characteristic.On; } getServiceType() { return this.platform.api.hap.Service.Switch; } } //# sourceMappingURL=switch.js.map