Remove unused values from config.ts

This commit is contained in:
dennis committed 2023-02-04 22:06:53 +01:00
1 parent 9e33e62f38
commit 05c16f6ea7
1 file changed
-7
-7
View File
@@ -1,10 +1,5 @@
import {PlatformConfig} from 'homebridge'; import {PlatformConfig} from 'homebridge';
export interface PluginBaseConfig {
Name: string;
Enable: boolean;
}
export interface PluginDeviceConfig { export interface PluginDeviceConfig {
readonly name: string; readonly name: string;
readonly numberConfiguredScenes: number; readonly numberConfiguredScenes: number;
@@ -15,12 +10,10 @@ export interface PluginDeviceConfig {
export class PluginConfig { export class PluginConfig {
readonly Name: string; readonly Name: string;
readonly Enable: boolean;
readonly Devices: PluginDeviceConfig[]; readonly Devices: PluginDeviceConfig[];
constructor(config: PlatformConfig) { constructor(config: PlatformConfig) {
this.Name = config.name!; this.Name = config.name!;
this.Enable = config.enable;
this.Devices = config.devices; this.Devices = config.devices;
} }