10_cul_hm: reduce default name length

git-svn-id: https://svn.fhem.de/fhem/trunk@8210 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2015-03-14 16:11:57 +00:00
parent f4b4f6d7f7
commit 1de654ebbd

View File

@@ -969,12 +969,7 @@ sub CUL_HM_Parse($$) {#########################################################
($dst eq $id ? $ioName :
$dst));
if(!$shash && $mTp eq "00") { # generate device
my $md = $mI[1].$mI[2];
$md = $culHmModel->{$md}{name} ?
$culHmModel->{$md}{name} :
"ID_".$md;
my $sname = "CUL_HM_".$md."_$src";
$sname =~ s/-/_/g;
my $sname = "HM_$src";
Log3 undef, 2, "CUL_HM Unknown device $sname is now defined";
DoTrigger("global","UNDEFINED $sname CUL_HM $src");
# CommandDefine(undef,"$sname CUL_HM $src");