mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
31_HUEDevice.pm: setList fix
git-svn-id: https://svn.fhem.de/fhem/trunk@11912 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4c79d1d301
commit
004a9fe56d
@ -1263,7 +1263,7 @@ HUEDevice_Attr($$$;$)
|
|||||||
return "$name is not a CLIP sensor device" if( $hash->{type} && $hash->{type} !~ m/^CLIP/ );
|
return "$name is not a CLIP sensor device" if( $hash->{type} && $hash->{type} !~ m/^CLIP/ );
|
||||||
if( $cmd eq "set" && $attrVal ) {
|
if( $cmd eq "set" && $attrVal ) {
|
||||||
foreach my $line ( split( "\n", $attrVal ) ) {
|
foreach my $line ( split( "\n", $attrVal ) ) {
|
||||||
my($cmd,$json) = split( ":", $line );
|
my($cmd,$json) = split( ":", $line,2 );
|
||||||
if( $cmd =~ m'^/(.*)/$' ) {
|
if( $cmd =~ m'^/(.*)/$' ) {
|
||||||
my $regex = $1;
|
my $regex = $1;
|
||||||
$hash->{helper}{setList}{'regex'} = [] if( !$hash->{helper}{setList}{':regex'} );
|
$hash->{helper}{setList}{'regex'} = [] if( !$hash->{helper}{setList}{':regex'} );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user