Skip to content

Commit

Permalink
chore(philips-hue): correct the log text (jef#1523)
Browse files Browse the repository at this point in the history
  • Loading branch information
collin-garvey authored Dec 27, 2020
1 parent a908ce4 commit ca1564e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/notification/philips-hue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ const adjustLightsWithAPI = (hueBridge: Api) => {
if (lightIds) {
const arrayOfIDs = lightIds.split(',');
arrayOfIDs.forEach((light) => {
logger.debug('adjusting all hue lights');
logger.debug('adjusting specified lights');
(hueBridge.lights.setLightState(
light,
lightState
) as Promise<any>).catch((error: Error) => {
logger.error('Failed to adjust all lights.');
logger.error('Failed to adjust specified lights.');
logger.error(error);
throw error;
});
Expand All @@ -60,12 +60,12 @@ const adjustLightsWithAPI = (hueBridge: Api) => {
.getAll()
.then((allLights: any[]) => {
allLights.forEach((light: any) => {
logger.debug('adjusting specified lights');
logger.debug('adjusting all hue lights');
(hueBridge.lights.setLightState(
light,
lightState
) as Promise<any>).catch((error: Error) => {
logger.error('Failed to adjust specified lights.');
logger.error('Failed to adjust all lights.');
logger.error(error);
throw error;
});
Expand Down

0 comments on commit ca1564e

Please sign in to comment.