Skip to content

Commit

Permalink
homekit: revert for longer staged rollout
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 15, 2024
1 parent 8abdab7 commit a3a878c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions plugins/homekit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/homekit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/homekit",
"version": "1.2.50",
"version": "1.2.51",
"description": "HomeKit Plugin for Scrypted",
"scripts": {
"scrypted-setup-project": "scrypted-setup-project",
Expand Down
2 changes: 1 addition & 1 deletion plugins/homekit/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class HomeKitPlugin extends ScryptedDeviceBase implements MixinProvider,
storageSettings.settings.pincode.persistedDefaultValue = randomPinCode();
// TODO: change this value after this current default has been persisted to existing clients.
// changing it now will cause existing accessories be renamed.
storageSettings.settings.addIdentifyingMaterial.persistedDefaultValue = true;
storageSettings.settings.addIdentifyingMaterial.persistedDefaultValue = false;

const mixinConsole = deviceManager.getMixinConsole(device.id, this.nativeId);

Expand Down
6 changes: 2 additions & 4 deletions plugins/homekit/src/types/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ addSupportedType({
const isRecordingEnabled = device.interfaces.includes(ScryptedInterface.MotionSensor);

let configuration: CameraRecordingConfiguration;
const openRecordingStreams = new Map<number, AsyncGenerator<RecordingPacket>>();
const openRecordingStreams = new Set<number>();
if (isRecordingEnabled) {
recordingDelegate = {
updateRecordingConfiguration(newConfiguration: CameraRecordingConfiguration) {
Expand All @@ -112,12 +112,10 @@ addSupportedType({
handleRecordingStreamRequest(streamId: number): AsyncGenerator<RecordingPacket> {
const ret = handleFragmentsRequests(streamId, device, configuration, console, homekitPlugin,
() => openRecordingStreams.has(streamId));
openRecordingStreams.set(streamId, ret);
openRecordingStreams.add(streamId);
return ret;
},
closeRecordingStream(streamId, reason) {
const r = openRecordingStreams.get(streamId);
r?.throw(new Error(reason?.toString()));
openRecordingStreams.delete(streamId);
},
updateRecordingActive(active) {
Expand Down

0 comments on commit a3a878c

Please sign in to comment.