32_withings.pm: fix for connection failure

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

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;