From dd66103f6859eb36104fd64cbf58969cea24a0ea Mon Sep 17 00:00:00 2001 From: Vincent Date: Sun, 8 Sep 2019 12:56:03 +0200 Subject: [PATCH] . --- .idea/workspace.xml | 22 +++++++++++----------- scripts/lib/hue.php | 5 ----- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a65b83b..0b6773d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,8 +3,7 @@ - - + diff --git a/scripts/lib/hue.php b/scripts/lib/hue.php index b9082e3..8ab5f10 100644 --- a/scripts/lib/hue.php +++ b/scripts/lib/hue.php @@ -46,9 +46,6 @@ function hueApplyScene($groupId, $sceneId, $transitionTime = null) foreach ($sceneId as $key => $value) { $command->$key($value); } - if (!isset($sceneId['effect'])) { - $command->effect('none'); - } if (null !== $transitionTime) { $command->transitionTime($transitionTime); } @@ -61,8 +58,6 @@ function hueApplyScene($groupId, $sceneId, $transitionTime = null) $command = new Phue\Command\SetGroupState($group); if (null !== $transitionTime) { $command->transitionTime($transitionTime); - } else { - $command->effect('none'); } $hue->sendCommand($command); $group->setScene($sceneId); -- 2.39.5