mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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/fhem@20989 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5919bc2dca
commit
1388382b0f
@ -23,6 +23,7 @@ use Time::Local;
|
|||||||
#require "30_HUEBridge.pm";
|
#require "30_HUEBridge.pm";
|
||||||
#require "$attr{global}{modpath}/FHEM/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
|
use vars qw(%FW_webArgs); # all arguments specified in the GET
|
||||||
|
|
||||||
my %hueModels = (
|
my %hueModels = (
|
||||||
@ -316,6 +317,7 @@ HUEDevice_IODevChanged($$$;$)
|
|||||||
$hash->{DEF} .= " IODev=$new"
|
$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/[^\s]+/$new_id/ if( $new_id );
|
||||||
|
|
||||||
$hash->{DEF} =~ s/ / /g;
|
$hash->{DEF} =~ s/ / /g;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user