mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
38_netatmo: fix code error breaking the module
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18876 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1de6940e59
commit
3d15086466
@ -58,8 +58,8 @@ netatmo_Initialize($)
|
|||||||
"ignored_device_ids ".
|
"ignored_device_ids ".
|
||||||
"setpoint_duration ".
|
"setpoint_duration ".
|
||||||
"webhookURL webhookPoll:0,1 ".
|
"webhookURL webhookPoll:0,1 ".
|
||||||
"addresslimit ".
|
#"serverAPI ".
|
||||||
#"serverAPI ";
|
"addresslimit ";
|
||||||
$hash->{AttrList} .= $readingFnAttributes;
|
$hash->{AttrList} .= $readingFnAttributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1759,11 +1759,11 @@ netatmo_initHome($@)
|
|||||||
return undef if( !defined($hash->{IODev}) );
|
return undef if( !defined($hash->{IODev}) );
|
||||||
|
|
||||||
my $iohash = $hash->{IODev};
|
my $iohash = $hash->{IODev};
|
||||||
netatmo_refreshToken( $iohash, defined($iohash->{access_token}) );
|
netatmo_refreshAppToken( $iohash, defined($iohash->{access_token_app}) );
|
||||||
|
|
||||||
return Log3 $name, 1, "$name: No access token was found! (initHome)" if(!defined($iohash->{access_token}));
|
return Log3 $name, 1, "$name: No access token was found! (initHome)" if(!defined($iohash->{access_token_app}));
|
||||||
|
|
||||||
my %data = (access_token => $iohash->{access_token}, home_id => $hash->{Home});
|
#my %data = (access_token => $iohash->{access_token_app}, home_id => $hash->{Home});
|
||||||
|
|
||||||
my $lastupdate = ReadingsVal( $name, ".lastupdate", undef );
|
my $lastupdate = ReadingsVal( $name, ".lastupdate", undef );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user