2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

37_harmony.pm: keep remoteId if user/pass is given

git-svn-id: https://svn.fhem.de/fhem/trunk@18053 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2018-12-25 12:04:36 +00:00
parent 0c8e5b9e59
commit 1b35a3485a

View File

@ -184,6 +184,7 @@ harmony_Define($$)
my $password = harmony_encrypt($a[3]);
$hash->{DEF} = "$username $password $ip";
$hash->{DEF} .= " remoteId=$param_h->{remoteId}" if( $param_h->{remoteId} );
$hash->{helper}{username} = $username;
$hash->{helper}{password} = $password;
@ -194,7 +195,6 @@ harmony_Define($$)
$hash->{NAME} = $name;
#$hash->{remoteId} = '6779631';
$hash->{remoteId} = $param_h->{remoteId};
$hash->{STATE} = "Initialized";