2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 14:47:00 +00:00

73_GardenaSmartBridge: check if defined

git-svn-id: https://svn.fhem.de/fhem/trunk@19341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
LeonGaultier 2019-05-07 02:42:13 +00:00
parent cd4cb18cab
commit 0eff2961be
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 73_GardenaSmartBridge: check if defined $data
- bufix: 55_DWD_OpenData: SunUp calculation (forum #83097 msg #931972)
- feature: 10_RESIDENTS: add home alone mode
- new: 20_PET: new RESIDENTS module type for pets at home

View File

@ -59,7 +59,7 @@ use strict;
use warnings;
use FHEM::Meta;
my $version = "1.6.1";
my $version = "1.6.2";
sub GardenaSmartBridge_Initialize($) {
@ -497,13 +497,12 @@ sub ErrorHandling($$$) {
return;
}
if (
if ( defined($data)
and $data
(
( $data =~ /Error/ )
or defined( eval { decode_json($data) }->{errors} )
)
and ref($param->{code}) eq 'HASH'
and exists( $param->{code} )
)
{
readingsBeginUpdate($dhash);