@openhab-ui/setup-and-maintenance
Version:
Configuration and maintenance interface for openHAB
24 lines (20 loc) • 569 B
JavaScript
import { store } from '../app.js';
class ModelAdapter {
constructor() {
this.STORE_ITEM_INDEX_PROP = Object.freeze("id");
this.runtimeKeys = []; this.items = [];
}
stores() { return { "services": "items" } };
sortStore() { return "services" };
getall(options = null) {
return this.get(null, null, options);
}
async get(table = null, objectid = null, options = null) {
this.items = await store.get("services", null, options);
}
dispose() {
}
}
const mixins = [];
const listmixins = [];
export { mixins, listmixins, ModelAdapter };