2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

30_HUEBridge.pm: don't try to read /auth/v1 for deCONZ

git-svn-id: https://svn.fhem.de/fhem/trunk@25571 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2022-01-27 18:58:06 +00:00
parent a487152ee6
commit ce49efae44

View File

@ -573,17 +573,19 @@ HUEBridge_OpenDev($)
$hash->{mac} = $result->{mac}; $hash->{mac} = $result->{mac};
my $params = { if( !$hash->{is_deCONZ} ) {
url => "https://$hash->{host}/auth/v1", my $params = {
#httpversion => '1.1', url => "https://$hash->{host}/auth/v1",
method => 'GET', #httpversion => '1.1',
timeout => 5, method => 'GET',
header => { 'HUE-Application-Key' => $attr{$name}{key}, }, timeout => 5,
type => 'application id', header => { 'HUE-Application-Key' => $attr{$name}{key}, },
hash => $hash, type => 'application id',
callback => \&HUEBridge_dispatch, hash => $hash,
}; callback => \&HUEBridge_dispatch,
HttpUtils_NonblockingGet( $params ); };
HttpUtils_NonblockingGet( $params );
}
readingsSingleUpdate($hash, 'state', 'connected', 1 ); readingsSingleUpdate($hash, 'state', 'connected', 1 );