diff --git a/src/Models/Config/IConfig.ts b/src/Models/Config/IConfig.ts index 2c1e9b0..95832e8 100644 --- a/src/Models/Config/IConfig.ts +++ b/src/Models/Config/IConfig.ts @@ -2,19 +2,21 @@ import { IMatrix } from "./IMatrix"; import { IActivity } from "./IActivity"; import { IDeviceButton } from "./IDeviceButton"; import { IDeviceConfig } from "./IDeviceConfig"; -import { IHub } from './IHub'; +import { IHub } from "./IHub"; +import { ISequence } from "./ISequence"; export interface IControlUnit { - DisplayName: string; - Activities: Array; + DisplayName: string; + Activities: Array; } export interface IConfig { - hubIp: string; - EmitDevicesOnStartup: boolean; - Matrix: IMatrix; - ControlUnits: Array; - DeviceButtons: Array; - Devices: Array; - Hubs: Array; -} \ No newline at end of file + hubIp: string; + EmitDevicesOnStartup: boolean; + Matrix: IMatrix; + ControlUnits: Array; + DeviceButtons: Array; + Sequences: Array; + Devices: Array; + Hubs: Array; +} diff --git a/src/platform.ts b/src/platform.ts index ef24806..3614aaf 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -22,7 +22,7 @@ export class Platform implements DynamicPlatformPlugin { ) { this.log.debug("Finished initializing platform:", config.name); - this.config = (config as unknown) as IConfig; + this.config = config as unknown as IConfig; //construct data provider const dataProvider = new HarmonyDataProvider({ hubs: this.config.Hubs, @@ -70,8 +70,8 @@ export class Platform implements DynamicPlatformPlugin { } public readonly Service: typeof Service = this.api.hap.Service; - public readonly Characteristic: typeof Characteristic = this.api.hap - .Characteristic; + public readonly Characteristic: typeof Characteristic = + this.api.hap.Characteristic; // this is used to track restored cached accessories public readonly accessories: PlatformAccessory[] = [];