mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-10-15 13:20:49 +08:00
Revert to standard ring-client-api
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { RingApi, RingDeviceType, RingCamera, RingChime, RingIntercom } from '@tsightler/ring-client-api'
|
||||
import { RingApi, RingDeviceType, RingCamera, RingChime, RingIntercom } from 'ring-client-api'
|
||||
import chalk from 'chalk'
|
||||
import utils from './utils.js'
|
||||
import go2rtc from './go2rtc.js'
|
||||
@@ -125,12 +125,6 @@ export default new class RingMqtt {
|
||||
state.updateToken(newRefreshToken)
|
||||
this.updatePushToken()
|
||||
})
|
||||
|
||||
this.client.onNewPushCredentials.subscribe((credentials) => {
|
||||
debug('Recevied updated push credentials')
|
||||
state.updatePushCredentials(credentials)
|
||||
})
|
||||
|
||||
} catch(error) {
|
||||
this.client = false
|
||||
debug(chalk.yellowBright(error.message))
|
||||
|
Reference in New Issue
Block a user