@constructorfleet/ultimate-govee
Version:
Library for interacting with Govee devices written in Typescript.
19 lines • 722 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LightDevice = void 0;
const device_1 = require("../../device");
const light_effect_state_1 = require("../../states/light-effect.state");
class LightDevice extends device_1.Device {
constructor(device, eventbus, commandBus, stateFactories) {
super(device, eventbus, commandBus, stateFactories);
const effectState = this.state(light_effect_state_1.LightEffectStateName);
if (effectState === undefined) {
return;
}
effectState.effects.delta$.subscribe(() => {
this.next(this);
});
}
}
exports.LightDevice = LightDevice;
//# sourceMappingURL=light.device.js.map