From d3c636a5cec346e365e7412c7565e98a5588da77 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 22 Apr 2021 19:10:00 +0200 Subject: [PATCH] fix Use of uninitialized value in concatenation #14 --- FHEM/74_GardenaSmartDevice.pm | 5 +++-- controls_GardenaSmartDevice.txt | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/FHEM/74_GardenaSmartDevice.pm b/FHEM/74_GardenaSmartDevice.pm index 970216f..c209601 100644 --- a/FHEM/74_GardenaSmartDevice.pm +++ b/FHEM/74_GardenaSmartDevice.pm @@ -604,8 +604,9 @@ sub WriteReadings { #Log3 $name, 1, " - KEIN ARRAY" if ( ref( $decode_json->{settings}[$settings]{value} ) ne "ARRAY"); #Log3 $name, 1, " - IST ARRAY" if ( ref( $decode_json->{settings}[$settings]{value} ) eq "ARRAY"); - if ( $decode_json->{settings}[$settings]{name} eq 'schedules_paused_until' - || $decode_json->{settings}[$settings]{name} eq 'eco_mode' + if ( exists($decode_json->{settings}[$settings]{name} + && ( $decode_json->{settings}[$settings]{name} eq 'schedules_paused_until' + || $decode_json->{settings}[$settings]{name} eq 'eco_mode' ) ) { if ( $hash->{helper}{$decode_json->{settings}[$settings]{name}.'_id'} ne diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 47d0a64..fa3d927 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2021-04-22_09:07:36 46169 FHEM/73_GardenaSmartBridge.pm -UPD 2021-04-22_09:13:02 48346 FHEM/74_GardenaSmartDevice.pm +UPD 2021-04-22_18:29:35 46169 FHEM/73_GardenaSmartBridge.pm +UPD 2021-04-22_19:09:15 48416 FHEM/74_GardenaSmartDevice.pm