From d7e80524989fcbc6a34b5da44f0e6a902a194dc8 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 10 Jul 2023 11:27:02 -0700 Subject: [PATCH] ring: remove push receiver token shim --- plugins/ring/package-lock.json | 4 ++-- plugins/ring/package.json | 2 +- plugins/ring/src/main.ts | 8 -------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/plugins/ring/package-lock.json b/plugins/ring/package-lock.json index c1b2ad2b0..1a6466afa 100644 --- a/plugins/ring/package-lock.json +++ b/plugins/ring/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/ring", - "version": "0.0.123", + "version": "0.0.124", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@scrypted/ring", - "version": "0.0.123", + "version": "0.0.124", "dependencies": { "@koush/ring-client-api": "file:../../external/ring-client-api", "@scrypted/common": "file:../../common", diff --git a/plugins/ring/package.json b/plugins/ring/package.json index 8b24ec0ea..9c39a9a53 100644 --- a/plugins/ring/package.json +++ b/plugins/ring/package.json @@ -44,5 +44,5 @@ "got": "11.8.6", "socket.io-client": "^2.5.0" }, - "version": "0.0.123" + "version": "0.0.124" } diff --git a/plugins/ring/src/main.ts b/plugins/ring/src/main.ts index 701dcb0ff..2a9ffa8ad 100644 --- a/plugins/ring/src/main.ts +++ b/plugins/ring/src/main.ts @@ -82,10 +82,6 @@ class RingPlugin extends ScryptedDeviceBase implements DeviceProvider, Settings ], defaultValue: 'Disabled', }, - pnc: { - hide: true, - json: true, - } }); constructor() { @@ -141,12 +137,8 @@ class RingPlugin extends ScryptedDeviceBase implements DeviceProvider, Settings }, }); - if (this.api.restClient.refreshToken && this.api.restClient.authConfig && this.settingsStorage.values.pnc) - this.api.restClient._internalOnly_pushNotificationCredentials = this.settingsStorage.values.pnc; - this.api.onRefreshTokenUpdated.subscribe(({ newRefreshToken }) => { this.settingsStorage.values.refreshToken = newRefreshToken; - this.settingsStorage.values.pnc = this.api.restClient._internalOnly_pushNotificationCredentials; }); }