Skip to content

Commit

Permalink
mqtt: remove scrypted-eval fs hack
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Dec 5, 2024
1 parent 59e0982 commit 5f0cf6b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion common/src/eval/scrypted-eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export async function scryptedEval(device: ScryptedDeviceBase, script: string, e

const allParams = Object.assign({}, params, {
sdk,
fs: require('realfs'),
ScryptedDeviceBase,
MixinDeviceBase,
StorageSettings,
Expand Down
2 changes: 1 addition & 1 deletion common/src/ffmpeg-hardware-acceleration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function isPi(model: string) {
export function isRaspberryPi() {
let cpuInfo: string;
try {
cpuInfo = require('realfs').readFileSync('/proc/cpuinfo', { encoding: 'utf8' });
cpuInfo = require('fs').readFileSync('/proc/cpuinfo', { encoding: 'utf8' });
}
catch (e) {
// if this fails, this is probably not a pi
Expand Down
4 changes: 2 additions & 2 deletions plugins/mqtt/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/mqtt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
"@types/node": "^18.4.2",
"@types/nunjucks": "^3.2.0"
},
"version": "0.0.82"
"version": "0.0.83"
}

0 comments on commit 5f0cf6b

Please sign in to comment.