diff --git a/src/accessories/koboldVacuumRobot.ts b/src/accessories/koboldVacuumRobot.ts index 5d2d112..79f5ee7 100644 --- a/src/accessories/koboldVacuumRobot.ts +++ b/src/accessories/koboldVacuumRobot.ts @@ -2,7 +2,7 @@ import {CharacteristicValue, Logger, PlatformAccessory, PlatformAccessoryEvent, import {HomebridgeKoboldPlatform} from '../homebridgeKoboldPlatform'; import {Options} from '../models/options'; import { RobotService, CleanType } from '../models/services'; -import { SERVICES, BACKGROUND_INTERVAL, PREFIX } from '../defaults'; +import { ALL_SERVICES, BACKGROUND_INTERVAL, PREFIX } from '../defaults'; /** * Platform Accessory @@ -55,7 +55,7 @@ export class KoboldVacuumRobotAccessory this.backgroundUpdateInterval = KoboldVacuumRobotAccessory.parseBackgroundUpdateInterval(this.config['backgroundUpdate']); 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; diff --git a/src/defaults.ts b/src/defaults.ts index 9634ebd..5290cac 100644 --- a/src/defaults.ts +++ b/src/defaults.ts @@ -2,4 +2,4 @@ import { RobotService } from "./models/services"; export const BACKGROUND_INTERVAL = 30; export const PREFIX = false; -export const SERVICES = new Set(Object.values(RobotService)); \ No newline at end of file +export const ALL_SERVICES = new Set(Object.values(RobotService)); \ No newline at end of file