2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

98_structure.pm: Fix FILTER problems introduced by last patch (Forum #47053)

git-svn-id: https://svn.fhem.de/fhem/trunk@10435 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-01-10 08:38:43 +00:00
parent 68b3cfd316
commit 2a044bf6d0

View File

@ -363,13 +363,13 @@ structure_Set($@)
my $filter;
if($list[1] ne "?") {
readingsSingleUpdate($hash, "state", @list[1..@list-1], 1);
my $state = join(" ", @list[1..@list-1]);
readingsSingleUpdate($hash, "state", $state, 1);
if( $hash->{STATE} =~ /^\[(FILTER=.*)]/ ) {
if($state =~ /^\[(FILTER=.*)]/) {
delete($hash->{INSET}); # Experimental, Forum #35382
$filter = $1;
@list = split(" ",
$list[0] ." ". substr($hash->{STATE}, length($filter)+2));
@list = split(" ", $list[0] ." ". substr($state, length($filter)+2));
}
}