mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
98_DOIF.pm: set attr all, if CmdDoIf ok
git-svn-id: https://svn.fhem.de/fhem/trunk@21224 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d533a3dc43
commit
7407ad3569
@ -3174,6 +3174,13 @@ CmdDoIfPerl($$)
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($init_done) {
|
||||
foreach my $key (keys %{$attr{$hash->{NAME}}}) {
|
||||
if ($key ne "disable" and AttrVal($hash->{NAME},$key,"")) {
|
||||
DOIF_Attr ("set",$hash->{NAME},$key,AttrVal($hash->{NAME},$key,""));
|
||||
}
|
||||
}
|
||||
}
|
||||
return("","")
|
||||
}
|
||||
|
||||
@ -3291,6 +3298,13 @@ CmdDoIf($$)
|
||||
$hash->{do}{$last_do+1}{0}=$else_cmd_ori if ($j==0); #doelse without brackets
|
||||
}
|
||||
|
||||
if ($init_done) {
|
||||
foreach my $key (keys %{$attr{$hash->{NAME}}}) {
|
||||
if ($key ne "disable" and AttrVal($hash->{NAME},$key,"")) {
|
||||
DOIF_Attr ("set",$hash->{NAME},$key,AttrVal($hash->{NAME},$key,""));
|
||||
}
|
||||
}
|
||||
}
|
||||
return("","")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user