mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 08:42:19 +00:00
common: settings mixin notify update
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { Settings, Setting, MixinDeviceBase, ScryptedInterface } from "@scrypted/sdk";
|
||||
import sdk from "@scrypted/sdk";
|
||||
|
||||
const { deviceManager } = sdk;
|
||||
|
||||
export interface SettingsMixinDeviceOptions {
|
||||
providerNativeId: string;
|
||||
@@ -42,6 +45,7 @@ export abstract class SettingsMixinDeviceBase<T> extends MixinDeviceBase<T & Set
|
||||
return this.mixinDevice.putSetting(key, value);
|
||||
}
|
||||
|
||||
return this.putMixinSetting(key.substring(prefix.length), value)
|
||||
await this.putMixinSetting(key.substring(prefix.length), value)
|
||||
deviceManager.onMixinEvent?.(this.id, this.mixinProviderNativeId, ScryptedInterface.Settings, null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user