File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
declare module 'homebridge-lib/EveHomeKitTypes' {
2
2
export class EveHomeKitTypes {
3
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3
4
constructor ( homebridge : any ) ;
4
5
6
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
7
Characteristics : Record < string , any > ;
8
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
9
Services : Record < string , any > ;
7
10
}
8
11
}
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ export class ExampleHomebridgePlatform implements DynamicPlatformPlugin {
19
19
public readonly accessories : Map < string , PlatformAccessory > = new Map ( ) ;
20
20
public readonly discoveredCacheUUIDs : string [ ] = [ ] ;
21
21
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
22
24
public readonly CustomServices : any ;
25
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
26
public readonly CustomCharacteristics : any ;
24
27
25
28
constructor (
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ export class ExamplePlatformAccessory {
34
34
35
35
if ( accessory . context . device . CustomService ) {
36
36
// 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 ] ) ;
38
39
this . platform . log . debug ( 'this.service' , this . service ) ;
39
40
} else {
40
41
this . service = this . accessory . getService ( this . platform . Service . Lightbulb ) || this . accessory . addService ( this . platform . Service . Lightbulb ) ;
You can’t perform that action at this time.
0 commit comments