mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 14:13:28 +00:00
ring: support custom controlCenterDisplayName
This commit is contained in:
4
plugins/ring/package-lock.json
generated
4
plugins/ring/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/ring",
|
||||
"version": "0.0.119",
|
||||
"version": "0.0.123",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/ring",
|
||||
"version": "0.0.119",
|
||||
"version": "0.0.123",
|
||||
"dependencies": {
|
||||
"@koush/ring-client-api": "file:../../external/ring-client-api",
|
||||
"@scrypted/common": "file:../../common",
|
||||
|
||||
@@ -44,5 +44,5 @@
|
||||
"got": "11.8.6",
|
||||
"socket.io-client": "^2.5.0"
|
||||
},
|
||||
"version": "0.0.119"
|
||||
"version": "0.0.123"
|
||||
}
|
||||
|
||||
@@ -19,6 +19,10 @@ class RingPlugin extends ScryptedDeviceBase implements DeviceProvider, Settings
|
||||
description: 'Used to provide client uniqueness for retrieving the latest set of events.',
|
||||
hide: true,
|
||||
},
|
||||
controlCenterDisplayName: {
|
||||
hide: true,
|
||||
defaultValue: 'scrypted-ring',
|
||||
},
|
||||
email: {
|
||||
title: 'Email',
|
||||
onPut: async () => {
|
||||
@@ -124,7 +128,7 @@ class RingPlugin extends ScryptedDeviceBase implements DeviceProvider, Settings
|
||||
this.api?.disconnect();
|
||||
|
||||
this.api = new RingBaseApi({
|
||||
controlCenterDisplayName: 'scrypted-ring',
|
||||
controlCenterDisplayName: this.settingsStorage.values.controlCenterDisplayName,
|
||||
refreshToken: this.settingsStorage.values.refreshToken,
|
||||
ffmpegPath: await mediaManager.getFFmpegPath(),
|
||||
locationIds,
|
||||
|
||||
Reference in New Issue
Block a user