mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_DOIF.pm: set attr all, if CmdDoIf ok
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21224 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6392af997f
commit
89d2e8bd35
@ -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("","")
|
return("","")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3291,6 +3298,13 @@ CmdDoIf($$)
|
|||||||
$hash->{do}{$last_do+1}{0}=$else_cmd_ori if ($j==0); #doelse without brackets
|
$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("","")
|
return("","")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user