prevent invalid defines

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4307 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2013-12-01 15:17:10 +00:00
parent 1248a65049
commit 162772e647

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);