Skip to content

Commit

Permalink
Dev 1.6.0-dev.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Oct 15, 2024
1 parent 3275bcd commit d15e596
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "matterbridge",
"version": "1.6.0-dev.8",
"version": "1.6.0-dev.9",
"description": "Matterbridge plugin manager for Matter",
"author": "https://github.com/Luligu",
"license": "Apache-2.0",
Expand Down
10 changes: 4 additions & 6 deletions src/matterbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ export class Matterbridge extends EventEmitter {
protected port = 5540; // first commissioning server port
protected passcode?: number; // first commissioning server passcode
protected discriminator?: number; // first commissioning server discriminator
private storageManager: StorageManager | undefined;
private matterbridgeContext: StorageContext | undefined;
protected storageManager: StorageManager | undefined;
protected matterbridgeContext: StorageContext | undefined;
private mattercontrollerContext: StorageContext | undefined;
private matterServer: MatterServer | undefined;
private matterAggregator: Aggregator | undefined;
Expand Down Expand Up @@ -2227,8 +2227,7 @@ export class Matterbridge extends EventEmitter {
* @param hardwareVersionString - The hardware version string of the device (optional).
* @returns The storage context for the commissioning server.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
protected async createCommissioningServerContext(pluginName: string, deviceName: string, deviceType: DeviceTypeId, vendorId: number, vendorName: string, productId: number, productName: string): Promise<StorageContext<any>> {
protected async createCommissioningServerContext(pluginName: string, deviceName: string, deviceType: DeviceTypeId, vendorId: number, vendorName: string, productId: number, productName: string): Promise<StorageContext> {
if (!this.storageManager) throw new Error('No storage manager initialized');
this.log.debug(`Creating commissioning server storage context for ${plg}${pluginName}${db}`);
const random = 'CS' + CryptoNode.getRandomData(8).toHex();
Expand Down Expand Up @@ -2263,8 +2262,7 @@ export class Matterbridge extends EventEmitter {
* @returns The commissioning server context.
* @throws Error if the BasicInformationCluster is not found.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
protected async importCommissioningServerContext(pluginName: string, device: MatterbridgeDevice): Promise<StorageContext<any>> {
protected async importCommissioningServerContext(pluginName: string, device: MatterbridgeDevice): Promise<StorageContext> {
this.log.debug(`Importing matter commissioning server storage context from device for ${plg}${pluginName}${db}`);
const basic = device.getClusterServer(BasicInformationCluster);
if (!basic) {
Expand Down

0 comments on commit d15e596

Please sign in to comment.