check also location_id so we have token and user id ...

This commit is contained in:
Sebastian 2021-07-28 21:51:36 +02:00
parent b423fc73fc
commit 908fe4fc24
2 changed files with 3 additions and 2 deletions

View File

@ -1228,7 +1228,8 @@ sub createHttpValueStrings {
&& defined( $hash->{helper}{locations_id} ) );
}
$uri = '/devices/'.InternalVal($hash->{helper}{debug_device}, 'DEVICEID', 0 ) if ( ($hash->{helper}{debug_device}) ne 'none' );
$uri = '/devices/'.InternalVal($hash->{helper}{debug_device}, 'DEVICEID', 0 ) if ( ($hash->{helper}{debug_device}) ne 'none'
&& defined( $hash->{helper}{locations_id} ) );
$uri = '/auth/token' if ( !defined( $hash->{helper}{session_id} ) );
if ( defined( $hash->{helper}{locations_id} ) ) {

View File

@ -1,2 +1,2 @@
UPD 2021-07-28_21:43:23 47158 FHEM/73_GardenaSmartBridge.pm
UPD 2021-07-28_21:51:10 47290 FHEM/73_GardenaSmartBridge.pm
UPD 2021-07-28_21:36:45 56217 FHEM/74_GardenaSmartDevice.pm