UNPKG

@constructorfleet/ultimate-govee

Version:

Library for interacting with Govee devices written in Typescript.

18 lines 735 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnknownState = exports.UnknownStateName = void 0; const device_state_1 = require("./device.state"); const _ultimate_govee_common_1 = require("../../../common"); exports.UnknownStateName = 'unknown'; class UnknownState extends device_state_1.DeviceOpState { constructor(device, opType = _ultimate_govee_common_1.OpType.REPORT, ...identifier) { super({ opType, identifier }, device, `${exports.UnknownStateName}-${identifier.join(',')}`, {}); } parseOpCommand(opCommand) { this.stateValue.next({ codes: opCommand, }); } } exports.UnknownState = UnknownState; //# sourceMappingURL=unknown.state.js.map