homebridge-kodi
Version:
Kodi plugin for Homebridge
17 lines • 663 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function defaultCharacteristic(Characteristic) {
return class DefaultCharacteristic extends Characteristic {
constructor(displayName, UUID, props) {
super(displayName, UUID, props);
this.setProps({
format: "string" /* Formats.STRING */,
perms: ["pr" /* Perms.PAIRED_READ */, "ev" /* Perms.NOTIFY */],
...props,
});
this.value = this.getDefaultValue();
}
};
}
exports.default = defaultCharacteristic;
//# sourceMappingURL=default-characteristic.js.map