Skip to content

Commit

Permalink
common/core: automation/build fixes for new management site
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jul 16, 2024
1 parent 1df5cfe commit 2e5e5b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/deferred.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class Deferred<T> {
this.resolve(await p);
}
catch (e) {
this.reject(e);
this.reject(e as Error);
}
}
promise = new Promise<T>((resolve, reject) => {
Expand Down
1 change: 1 addition & 0 deletions plugins/core/src/automation-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ addAction(ScryptedInterface.OnOff, {
on: {
title: 'Turn On/Off',
type: 'boolean',
immediate: true,
}
}, async function invoke(device: ScryptedDevice & OnOff, storageSettings) {
return storageSettings.on ? device.turnOn() : device.turnOff();
Expand Down

0 comments on commit 2e5e5b7

Please sign in to comment.