mirror of
https://github.com/dtwardow/homebridge-multi-tap-switch.git
synced 2026-11-02 05:18:30 +00:00
Remove unused values from config.ts
This commit is contained in:
1 parent
9e33e62f38
commit
05c16f6ea7
1 file changed
-7
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user