Skip to content

Commit 1fd8f03

Browse files
committed
fix: identify authorized_doorbots as doorbell cameras
1 parent fd70266 commit 1fd8f03

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

api/api.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export class RingApi {
152152
async fetchAndBuildLocations() {
153153
const rawLocations = await this.fetchRawLocations(),
154154
{
155+
authorizedDoorbots,
155156
doorbots,
156157
allCameras,
157158
baseStations,
@@ -161,7 +162,12 @@ export class RingApi {
161162
x => x.location_id
162163
),
163164
cameras = allCameras.map(
164-
data => new RingCamera(data, doorbots.includes(data), this.restClient)
165+
data =>
166+
new RingCamera(
167+
data,
168+
doorbots.includes(data) || authorizedDoorbots.includes(data),
169+
this.restClient
170+
)
165171
),
166172
locations = rawLocations
167173
.filter(location => {

0 commit comments

Comments
 (0)