Skip to content

Commit

Permalink
Merge pull request #586 from hollie/allow_external_hue_control
Browse files Browse the repository at this point in the history
Fix for Philips Hues controlled by external application
  • Loading branch information
hollie committed Apr 12, 2016
2 parents 41cc194 + c86e6d4 commit 41d9841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Philips_Hue.pm
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ sub default_setstate {
my $cmnd = ( $state =~ /^off/i ) ? 'off' : 'on';
$cmnd = $state if ( $state =~ /\%/ );

return -1
if ( $self->state eq $state )
; # Don't propagate state unless it has changed.
#return -1
# if ( $self->state eq $state )
# ; # Don't propagate state unless it has changed.

::print_log( 'hue',
"Request " . $self->get_object_name . " turn " . $cmnd );
Expand Down

0 comments on commit 41d9841

Please sign in to comment.