2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-24 21:29:21 +00:00

38_netatmo: fixed ignored values after 'dead' state

git-svn-id: https://svn.fhem.de/fhem/trunk@17668 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
moises 2018-11-03 22:05:49 +00:00
parent bf2df3cb2a
commit b5c845d87e

View File

@ -5528,6 +5528,11 @@ netatmo_pollDevice($)
$hash->{openRequests} = 0 if ( !defined( $hash->{openRequests}) );
if( !defined($hash->{dataTypes}) && $hash->{SUBTYPE} ne "PUBLIC" && (defined($hash->{Module}) || defined($hash->{Device}) ) ) {
Log3 $name, 2, "$name: dataTypes missing, re-initializing device";
netatmo_initDevice($hash);
}
if( $hash->{Module} )
{
my @types = split( ' ', $hash->{dataTypes} ) if(defined($hash->{dataTypes}));