rename defaults
This commit is contained in:
parent
0e50126a34
commit
66f8f2e277
@ -2,7 +2,7 @@ import {CharacteristicValue, Logger, PlatformAccessory, PlatformAccessoryEvent,
|
|||||||
import {HomebridgeKoboldPlatform} from '../homebridgeKoboldPlatform';
|
import {HomebridgeKoboldPlatform} from '../homebridgeKoboldPlatform';
|
||||||
import {Options} from '../models/options';
|
import {Options} from '../models/options';
|
||||||
import { RobotService, CleanType } from '../models/services';
|
import { RobotService, CleanType } from '../models/services';
|
||||||
import { SERVICES, BACKGROUND_INTERVAL, PREFIX } from '../defaults';
|
import { ALL_SERVICES, BACKGROUND_INTERVAL, PREFIX } from '../defaults';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Platform Accessory
|
* Platform Accessory
|
||||||
@ -55,7 +55,7 @@ export class KoboldVacuumRobotAccessory
|
|||||||
|
|
||||||
this.backgroundUpdateInterval = KoboldVacuumRobotAccessory.parseBackgroundUpdateInterval(this.config['backgroundUpdate']);
|
this.backgroundUpdateInterval = KoboldVacuumRobotAccessory.parseBackgroundUpdateInterval(this.config['backgroundUpdate']);
|
||||||
this.prefix = this.config['prefix'] || PREFIX;
|
this.prefix = this.config['prefix'] || PREFIX;
|
||||||
this.availableServices = new Set(this.config['services']) || SERVICES;
|
this.availableServices = new Set(this.config['services']) || ALL_SERVICES;
|
||||||
|
|
||||||
this.isSpotCleaning = false;
|
this.isSpotCleaning = false;
|
||||||
|
|
||||||
|
@ -2,4 +2,4 @@ import { RobotService } from "./models/services";
|
|||||||
|
|
||||||
export const BACKGROUND_INTERVAL = 30;
|
export const BACKGROUND_INTERVAL = 30;
|
||||||
export const PREFIX = false;
|
export const PREFIX = false;
|
||||||
export const SERVICES = new Set(Object.values(RobotService));
|
export const ALL_SERVICES = new Set(Object.values(RobotService));
|
Loading…
Reference in New Issue
Block a user