2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

32_withings.pm: fix for connection failure

git-svn-id: https://svn.fhem.de/fhem/trunk@7757 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-01-28 13:13:00 +00:00
parent 3fa2adba43
commit c23d7ae18f

View File

@ -562,6 +562,8 @@ withings_pollUser($)
my $json = ();
$json = JSON->new->utf8->decode(encode('UTF-8', $ret)) if( $ret =~ m/^{.*}$/ );
return undef if( !$json );
$hash->{status} = $json->{status};
if( $hash->{status} == 0 ) {
my $i = 0;