fhem.pl: AssignIoPort checks the IODev Attribute

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5340 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-03-27 16:19:53 +00:00
parent ec6236d346
commit de93b512eb

View File

@@ -1586,6 +1586,9 @@ AssignIoPort($;$)
$modules{$ht}{AttrList} &&
$modules{$ht}{AttrList} =~ m/IODev/);
$proposed = $attr{$hn}{IODev}
if(!$proposed && $attr{$hn} && $attr{$hn}{IODev});
if($proposed && $defs{$proposed}) {
$hash->{IODev} = $defs{$proposed};
$attr{$hn}{IODev} = $proposed if($hasIODevAttr);