check also location_id so we have token and user id ...
This commit is contained in:
parent
b423fc73fc
commit
908fe4fc24
@ -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} ) ) {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user