2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

fhem.pl: AssignIoPort checks the IODev Attribute

git-svn-id: https://svn.fhem.de/fhem/trunk@5340 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-03-27 16:19:53 +00:00
parent 5aa41bc654
commit 2f4549f3c0

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