fix unused value

This commit is contained in:
Marko Oldenburg 2020-04-13 11:34:13 +02:00
parent c1c1342fcc
commit 1d96ec9501
2 changed files with 4 additions and 3 deletions

View File

@ -63,7 +63,7 @@ use POSIX;
use FHEM::Meta;
use HttpUtils;
our $VERSION = '1.6.7';
our $VERSION = '1.6.8';
my $missingModul = '';
eval "use Encode qw(encode encode_utf8 decode_utf8);1"
@ -1126,7 +1126,8 @@ sub createHttpValueStrings($@) {
if ( $payload eq '{}' ) {
$method = 'GET';
$uri .= '/locations/?user_id=' . $hash->{helper}{user_id}
if ( not defined( $hash->{helper}{locations_id} ) );
if ( exists($hash->{helper}{user_id})
and not defined( $hash->{helper}{locations_id} ) );
readingsSingleUpdate( $hash, 'state', 'fetch locationId', 1 )
if ( not defined( $hash->{helper}{locations_id} ) );
$uri .= '/sessions' if ( not defined( $hash->{helper}{session_id} ) );

View File

@ -680,7 +680,7 @@ sub ReadingLangGerman($$) {
'paused' => 'pausiert',
'ok_searching' => 'suche Ladestation',
'ok_charging' => 'lädt',
'ok_leaving' => 'mähen',
'ok_leaving' => 'unterwegs zum Startpunkt',
'wait_updating' => 'wird aktualisiert ...',
'wait_power_up' => 'wird eingeschaltet ...',
'parked_timer' => 'geparkt nach Zeitplan',