2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-02 00:48:53 +00:00

30_HUEBridge.pm: readded preparation for username changes in pairing with bridge firmware 1.8

git-svn-id: https://svn.fhem.de/fhem/trunk@8997 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-07-27 20:00:07 +00:00
parent 9ddc214a12
commit 85e9038ee5

View File

@ -1,5 +1,5 @@
# $Id$
# $Id: 30_HUEBridge.pm 8979 2015-07-15 19:30:30Z justme1968 $
# "Hue Personal Wireless Lighting" is a trademark owned by Koninklijke Philips Electronics N.V.,
# see www.meethue.com for more information.
@ -189,6 +189,7 @@ sub HUEBridge_OpenDev($)
sub HUEBridge_Pair($)
{
my ($hash) = @_;
my $name = $hash->{NAME};
$hash->{STATE} = 'Pairing';
@ -201,6 +202,8 @@ sub HUEBridge_Pair($)
return undef;
}
$attr{$name}{key} = $result->{success}{username} if( $result->{success}{username} );
$hash->{STATE} = 'Paired';
HUEBridge_OpenDev($hash);