mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
00_FBAHAHTTP.pm: Fix IODev assignment for multiple FBAHAHTTP devices (Forum #90041)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17110 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fb28f545c3
commit
068b8c8e62
@ -39,13 +39,14 @@ FBAHAHTTP_Define($$)
|
||||
my %matchList = ( "1:FBDECT" => ".*" );
|
||||
$hash->{MatchList} = \%matchList;
|
||||
|
||||
# Moving definition from FBAHA to FBAHAHTTP
|
||||
for my $d (devspec2array("TYPE=FBDECT")) {
|
||||
if($defs{$d}{IODev} && $defs{$d}{IODev}{TYPE} eq "FBAHA") {
|
||||
my $n = $defs{$d}{IODev}{NAME};
|
||||
CommandAttr(undef, "$d IODev $hash->{NAME}");
|
||||
CommandDelete(undef, $n) if($defs{$n});
|
||||
$defs{$d}{IODev} = $hash;
|
||||
}
|
||||
$defs{$d}{IODev} = $hash
|
||||
}
|
||||
$hash->{CmdStack} = ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user