test: catch null value
This commit is contained in:
parent
790d5206b6
commit
579f632990
@ -1059,6 +1059,7 @@ sub WriteReadings {
|
|||||||
if ( ref($v) eq 'ARRAY' );
|
if ( ref($v) eq 'ARRAY' );
|
||||||
|
|
||||||
#$v = encode_utf8($v);
|
#$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]
|
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/ );
|
{name} !~ /ethernet_status|wifi_status/ );
|
||||||
Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 2".$t if ( $decode_json->{abilities}[0]{properties}[$properties]
|
Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 2".$t if ( $decode_json->{abilities}[0]{properties}[$properties]
|
||||||
|
@ -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
|
UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user