Skip to content

Commit 1bfcbaa

Browse files
committed
Lint fixes
1 parent d115946 commit 1bfcbaa

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/@types/homebridge-lib.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
declare module 'homebridge-lib/EveHomeKitTypes' {
22
export class EveHomeKitTypes {
3+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
34
constructor(homebridge: any);
45

6+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
57
Characteristics: Record<string, any>;
8+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
69
Services: Record<string, any>;
710
}
811
}

src/platform.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export class ExampleHomebridgePlatform implements DynamicPlatformPlugin {
1919
public readonly accessories: Map<string, PlatformAccessory> = new Map();
2020
public readonly discoveredCacheUUIDs: string[] = [];
2121

22+
// This is only required when using Custom Services and Characteristics not support by HomeKit
23+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2224
public readonly CustomServices: any;
25+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2326
public readonly CustomCharacteristics: any;
2427

2528
constructor(

src/platformAccessory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export class ExamplePlatformAccessory {
3434

3535
if (accessory.context.device.CustomService) {
3636
// This is only required when using Custom Services and Characteristics not support by HomeKit
37-
this.service = this.accessory.getService(this.platform.CustomServices[accessory.context.device.CustomService]) || this.accessory.addService(this.platform.CustomServices[accessory.context.device.CustomService]);
37+
this.service = this.accessory.getService(this.platform.CustomServices[accessory.context.device.CustomService]) ||
38+
this.accessory.addService(this.platform.CustomServices[accessory.context.device.CustomService]);
3839
this.platform.log.debug('this.service', this.service);
3940
} else {
4041
this.service = this.accessory.getService(this.platform.Service.Lightbulb) || this.accessory.addService(this.platform.Service.Lightbulb);

0 commit comments

Comments
 (0)