You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to make a branch (+ PR) to add a function to see if any light in a group is on rather than the whole group.
So instead of a PR here's the code :)
I've added it to Group.php:154;
/**
* Is anything in the group on?
*
* @return bool True if on, false if not
*/
public function anyOn()
{
return (bool) $this->attributes->state->any_on;
}
The text was updated successfully, but these errors were encountered:
Hello,
I tried to make a branch (+ PR) to add a function to see if any light in a group is on rather than the whole group.
So instead of a PR here's the code :)
I've added it to Group.php:154;
The text was updated successfully, but these errors were encountered: