Skip to content

Commit 4360796

Browse files
authored
Merge pull request #7 from strfl89/testing
Version 2.2.2 - Bugfix devices.php
2 parents b1b6c3a + b40506d commit 4360796

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

.DS_Store

0 Bytes
Binary file not shown.

devices.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function setDimmer($path, $dimmer, $transition = NULL){
9393

9494
$dim = round(254 * (int)str_replace("%", "", trim($dimmer)) / 100, 0);
9595

96-
$payload = is_null($transition) ? '{ "3311": [{ "5851" : '.$dim.' }] }" : "{ "3311": [{ "5851": '.$dim.', "5712": '.$transition.' }] }';
96+
$payload = is_null($transition) ? '{ "3311": [{ "5851" : '.$dim.' }] }' : '{ "3311": [{ "5851": '.$dim.', "5712": '.$transition.' }] }';
9797
$this->action("put", $payload, "15001/$path");
9898

9999
if($this->getDimmer($path) == $dim)

docs/index.html

Whitespace-only changes.

0 commit comments

Comments
 (0)