Skip to content

Commit

Permalink
Merge pull request #493 from mStirner/dev
Browse files Browse the repository at this point in the history
Working on issues
  • Loading branch information
mStirner authored Oct 22, 2024
2 parents dbf499e + 961ee38 commit 719ab87
Show file tree
Hide file tree
Showing 38 changed files with 3,146 additions and 2,144 deletions.
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Open Gnome Terminal with Tabs",
"type": "shell",
"command": "gnome-terminal",
"args": [
"--tab", "--working-directory", "~/projects/OpenHaus/backend",
"--tab", "--working-directory", "~/projects/OpenHaus/connector",
"--tab", "--working-directory", "~/projects/OpenHaus/frontend",
],
"problemMatcher": [],
"presentation": {
"close": true
}
}
]
}
6 changes: 4 additions & 2 deletions components/devices/class.device.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Interface = require("./class.interface.js");
const Item = require("../../system/component/class.item.js");

const mixins = require("../../helper/mixins.js");
const injectMethod = require("../../helper/injectMethod.js");
//const injectMethod = require("../../helper/injectMethod.js");

//const { parse, calculateChecksum } = require("./net-helper.js");

Expand All @@ -28,7 +28,7 @@ const injectMethod = require("../../helper/injectMethod.js");
* @see interfaceStream components/devices/class.interfaceStream.js
*/
module.exports = class Device extends Item {
constructor(props, scope) {
constructor(props) {

super(props);

Expand Down Expand Up @@ -64,13 +64,15 @@ module.exports = class Device extends Item {
// NOTE: remove "device" for bridging requests (only needed in connector)?
// > See: https://github.com/OpenHausIO/connector/issues/54
// > When done, "device" property can be removed, and the `.bridge()` method can be moved into Interface class
/*
injectMethod(iface, "bridge", (cb) => {
return Interface._bridge({
events: scope.events,
interface: iface,
device: this._id
}, cb);
});
*/


// "hide" stream behind iface object
Expand Down
Loading

0 comments on commit 719ab87

Please sign in to comment.