From 579f63299058a27c280a20509c3b7ef960c27a30 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 23 Feb 2024 22:52:25 +0100 Subject: [PATCH] test: catch null value --- FHEM/73_GardenaSmartBridge.pm | 1 + controls_GardenaSmartDevice.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index 6c00470..cd0d384 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1059,6 +1059,7 @@ sub WriteReadings { if ( ref($v) eq 'ARRAY' ); #$v = encode_utf8($v); + $v = ' ' if (!defined $v); Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 1 ".$decode_json->{abilities}[0]{properties}[$properties]{name} if ( $decode_json->{abilities}[0]{properties}[$properties] {name} !~ /ethernet_status|wifi_status/ ); Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 2".$t if ( $decode_json->{abilities}[0]{properties}[$properties] diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 439d528..de89374 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-02-21_21:59:56 49549 FHEM/73_GardenaSmartBridge.pm +UPD 2024-02-23_22:52:08 49596 FHEM/73_GardenaSmartBridge.pm UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm