mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
73_GardenaSmartBridge: check if defined
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
508197f9d4
commit
d92cd290d6
1
CHANGED
1
CHANGED
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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)
|
- bufix: 55_DWD_OpenData: SunUp calculation (forum #83097 msg #931972)
|
||||||
- feature: 10_RESIDENTS: add home alone mode
|
- feature: 10_RESIDENTS: add home alone mode
|
||||||
- new: 20_PET: new RESIDENTS module type for pets at home
|
- new: 20_PET: new RESIDENTS module type for pets at home
|
||||||
|
@ -59,7 +59,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use FHEM::Meta;
|
use FHEM::Meta;
|
||||||
|
|
||||||
my $version = "1.6.1";
|
my $version = "1.6.2";
|
||||||
|
|
||||||
|
|
||||||
sub GardenaSmartBridge_Initialize($) {
|
sub GardenaSmartBridge_Initialize($) {
|
||||||
@ -497,13 +497,12 @@ sub ErrorHandling($$$) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if ( defined($data)
|
||||||
|
and $data
|
||||||
(
|
(
|
||||||
( $data =~ /Error/ )
|
( $data =~ /Error/ )
|
||||||
or defined( eval { decode_json($data) }->{errors} )
|
or defined( eval { decode_json($data) }->{errors} )
|
||||||
)
|
)
|
||||||
and ref($param->{code}) eq 'HASH'
|
|
||||||
and exists( $param->{code} )
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
readingsBeginUpdate($dhash);
|
readingsBeginUpdate($dhash);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user