mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
31_HUEDevice.pm: fix for IODev order, forum: https://forum.fhem.de/index.php/topic,11020.msg1013424.html#msg1013424
git-svn-id: https://svn.fhem.de/fhem/trunk@20989 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
be9bc8d368
commit
009d1566f4
@ -23,6 +23,7 @@ use Time::Local;
|
||||
#require "30_HUEBridge.pm";
|
||||
#require "$attr{global}{modpath}/FHEM/30_HUEBridge.pm";
|
||||
|
||||
use vars qw($devcount); # Maximum device number, used for storing
|
||||
use vars qw(%FW_webArgs); # all arguments specified in the GET
|
||||
|
||||
my %hueModels = (
|
||||
@ -316,6 +317,7 @@ HUEDevice_IODevChanged($$$;$)
|
||||
$hash->{DEF} .= " IODev=$new"
|
||||
}
|
||||
|
||||
$hash->{NR} = $devcount++ if( $new_id && $new && $defs{$new}->{NR} > $hash->{NR} );
|
||||
$hash->{DEF} =~ s/[^\s]+/$new_id/ if( $new_id );
|
||||
|
||||
$hash->{DEF} =~ s/ / /g;
|
||||
|
Loading…
Reference in New Issue
Block a user