Permalink
Browse files

Merge pull request #215 from tarasfrompir/master

Update SYeelightSmartBulb_switch.php
  • Loading branch information...
T-REX-XP committed Jul 30, 2018
2 parents 1f21cab + 86be4e1 commit 2422294ab65ccc972dbba44cef2d93494ca8de7a
Showing with 7 additions and 2 deletions.
  1. +7 −2 modules/devices/SYeelightSmartBulb_switch.php
@@ -1,2 +1,7 @@
<?php
<?php
$currentStatus=$this->getProperty('status');
if ($currentStatus) {
$this->callmethodSafe('turnOff');
} else {
$this->callmethodSafe('turnOn');
}

0 comments on commit 2422294

Please sign in to comment.