From 66f8f2e277c12425f894c9094a0adeda7eb3263a Mon Sep 17 00:00:00 2001 From: Luis Riegger Date: Sun, 9 May 2021 16:32:02 +0200 Subject: [PATCH] rename defaults --- src/accessories/koboldVacuumRobot.ts | 4 ++-- src/defaults.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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