Valetudo/backend/lib/core/capabilities/FanSpeedControlCapability.js

29 lines
695 B
JavaScript

const NotImplementedError = require("../NotImplementedError");
const PresetSelectionCapability = require("./PresetSelectionCapability");
/**
* @template {import("../ValetudoRobot")} T
* @extends PresetSelectionCapability<T>
*/
class FanSpeedControlCapability extends PresetSelectionCapability {
/**
* @abstract
* @param {string} preset
* @returns {Promise<void>}
*/
async selectPreset(preset) {
throw new NotImplementedError();
}
/**
* @returns {string}
*/
getType() {
return FanSpeedControlCapability.TYPE;
}
}
FanSpeedControlCapability.TYPE = "FanSpeedControlCapability";
module.exports = FanSpeedControlCapability;