2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

76_SMAPortal: contrib 3.6.3

git-svn-id: https://svn.fhem.de/fhem/trunk@23103 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-11-05 22:01:07 +00:00
parent ea9c15ba09
commit d607d2c3d6

View File

@ -401,16 +401,12 @@ sub Set {
;
if($hash->{HELPER}{PLANTOID} && $hash->{HELPER}{CONSUMER}) {
my $lfd = 0;
for my $key (keys %{$hash->{HELPER}{CONSUMER}{$lfd}}) {
for my $key (keys %{$hash->{HELPER}{CONSUMER}}) {
my $dev = $hash->{HELPER}{CONSUMER}{$lfd}{DeviceName};
Log3($name, 1, "$name - Lfd: $lfd, DEV: $dev");
if($dev) {
push @ads, $dev;
$setlist .= "$dev:on,off,auto ";
}
else {
delete $hash->{HELPER}{CONSUMER}{$lfd};
}
$lfd++;
}
}