Valetudo/backend/lib/mqtt/homeassistant/HassAnchorSubscriber.js

20 lines
381 B
JavaScript

const NotImplementedError = require("../../core/NotImplementedError");
/**
* @abstract
* @public
*/
class HassAnchorSubscriber {
/**
* @package
* @abstract
* @param {import("./HassAnchor")} anchor
* @return {Promise<void>}
*/
async onAnchorPost(anchor) {
throw new NotImplementedError();
}
}
module.exports = HassAnchorSubscriber;