mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +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/ );
|
||||
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'} );
|
||||
|
Loading…
x
Reference in New Issue
Block a user