33_readingsGroup.pm: check for empty hash in IODev. see forum: https://forum.fhem.de/index.php/topic,14425.msg623033.html#msg623033

git-svn-id: https://svn.fhem.de/fhem/trunk@14038 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2017-04-19 18:59:11 +00:00
parent 78f2e74891
commit e48a41a1e2

View File

@@ -118,7 +118,7 @@ readingsGroup_updateDevices($;$)
next if( IsIgnored($d) );
next if( !defined($defs{$d}{$lattr}) );
next if( $lattr ne 'IODev' && $defs{$d}{$lattr} !~ m/^$re$/);
next if( $lattr eq 'IODev' && $defs{$d}{$lattr}{NAME} !~ m/^$re$/);
next if( $lattr eq 'IODev' && $defs{$d}{$lattr}{NAME} && $defs{$d}{$lattr}{NAME} !~ m/^$re$/);
$list{$d} = 1;
push @devices, [$d,$device[1]];
}