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:
justme1968
2016-08-06 20:36:33 +00:00
parent 6864436f45
commit 11aaa4be4a

View File

@@ -1263,7 +1263,7 @@ HUEDevice_Attr($$$;$)
return "$name is not a CLIP sensor device" if( $hash->{type} && $hash->{type} !~ m/^CLIP/ );
if( $cmd eq "set" && $attrVal ) {
foreach my $line ( split( "\n", $attrVal ) ) {
my($cmd,$json) = split( ":", $line );
my($cmd,$json) = split( ":", $line,2 );
if( $cmd =~ m'^/(.*)/$' ) {
my $regex = $1;
$hash->{helper}{setList}{'regex'} = [] if( !$hash->{helper}{setList}{':regex'} );