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:
parent
5aa41bc654
commit
2f4549f3c0
@ -1586,6 +1586,9 @@ AssignIoPort($;$)
|
|||||||
$modules{$ht}{AttrList} &&
|
$modules{$ht}{AttrList} &&
|
||||||
$modules{$ht}{AttrList} =~ m/IODev/);
|
$modules{$ht}{AttrList} =~ m/IODev/);
|
||||||
|
|
||||||
|
$proposed = $attr{$hn}{IODev}
|
||||||
|
if(!$proposed && $attr{$hn} && $attr{$hn}{IODev});
|
||||||
|
|
||||||
if($proposed && $defs{$proposed}) {
|
if($proposed && $defs{$proposed}) {
|
||||||
$hash->{IODev} = $defs{$proposed};
|
$hash->{IODev} = $defs{$proposed};
|
||||||
$attr{$hn}{IODev} = $proposed if($hasIODevAttr);
|
$attr{$hn}{IODev} = $proposed if($hasIODevAttr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user