fix: disable after 5 attemps
This commit is contained in:
parent
ae437a09f2
commit
9412aac176
@ -718,10 +718,14 @@ sub ErrorHandling {
|
|||||||
"GardenaSmartBridge ($name) - getToken limit: "
|
"GardenaSmartBridge ($name) - getToken limit: "
|
||||||
. $hash->{helper}{gettoken_count} ;
|
. $hash->{helper}{gettoken_count} ;
|
||||||
|
|
||||||
$hash->{helper}{gettoken_count}++;
|
if ($hash->{helper}{gettoken_count} < 6) {
|
||||||
InternalTimer( gettimeofday() + 5,
|
$hash->{helper}{gettoken_count}++;
|
||||||
|
InternalTimer( gettimeofday() + 5,
|
||||||
"FHEM::GardenaSmartBridge::getToken", $hash )
|
"FHEM::GardenaSmartBridge::getToken", $hash )
|
||||||
if ($hash->{helper}{gettoken_count} < 6);
|
} else {
|
||||||
|
RemoveInternalTimer ($hash);
|
||||||
|
$hash->{helper}{gettoken_count} = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
readingsEndUpdate( $dhash, 1 );
|
readingsEndUpdate( $dhash, 1 );
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
UPD 2024-05-22_18:35:07 51132 FHEM/73_GardenaSmartBridge.pm
|
UPD 2024-05-22_18:46:22 51262 FHEM/73_GardenaSmartBridge.pm
|
||||||
UPD 2024-05-21_09:01:54 127762 FHEM/74_GardenaSmartDevice.pm
|
UPD 2024-05-21_09:01:54 127762 FHEM/74_GardenaSmartDevice.pm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user