prevent invalid defines

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4307 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2013-12-01 15:17:10 +00:00
parent 4cbdc9a3b4
commit 9b1cb7a8a9

View File

@ -183,6 +183,8 @@ sub CUL_HM_updateConfig($){
# Purpose is to parse attributes and read config
foreach my $name (@{$modules{CUL_HM}{helper}{updtCfgLst}}){
my $hash = $defs{$name};
next if (!$hash->{DEF}); # likely renamed
my $id = $hash->{DEF};
my $chn = substr($id."00",6,2);