Skip to content

Commit

Permalink
server: Fix device initialization on first report
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 16, 2023
1 parent a88a295 commit b271567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/plugin/plugin-host-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ export class PluginHostAPI extends PluginAPIManagedListeners implements PluginAP

for (const upsert of deviceManifest.devices) {
upsert.providerNativeId = deviceManifest.providerNativeId;
await this.pluginHost.upsertDevice(upsert);
const id = await this.pluginHost.upsertDevice(upsert);
this.scrypted.getDevice(id)?.probe().catch(() => { });
}
}

Expand Down

0 comments on commit b271567

Please sign in to comment.