patch_login_autodisable_api #108

Merged
marko merged 7 commits from patch_login_autodisable_api into dev 2024-05-22 17:10:37 +00:00
2 changed files with 6 additions and 10 deletions
Showing only changes of commit 640a7544d7 - Show all commits

View File

@ -694,16 +694,12 @@ sub ErrorHandling {
}
elsif ( $decode_json->{errors}[0]{code} eq "ratelimit.exceeded" ) {
Log3 $dname, 5,
"GardenaSmartBridge ($dname) - RequestERROR: error ratelimit.exceeded";
readingsBulkUpdate( $dhash, "lastRequestState", "too many requests", 1 );
readingsBulkUpdate( $dhash, "state", "inactive", 1 );
Log3 $name, 5,
"GardenaSmartBridge ($name) - RequestERROR: error ratelimit.exceeded";
readingsBulkUpdate( $hash, "lastRequestState", "too many requests", 1 );
readingsBulkUpdate( $hash, "state", "inactive", 1 );
# remove all timer and disable bridge
readingsBulkUpdate( $dhash, "disable", "1", 1 );
# AttrVal( $name, 'disable', '1');
RemoveInternalTimer( $dhash, "FHEM::GardenaSmartBridge::getDevices" );
RemoveInternalTimer( $dhash, "FHEM::GardenaSmartBridge::getToken" );
RemoveInternalTimer( $hash );
return; # post request max.
}

View File

@ -1,2 +1,2 @@
UPD 2024-05-21_22:04:23 51083 FHEM/73_GardenaSmartBridge.pm
UPD 2024-05-22_18:13:20 50855 FHEM/73_GardenaSmartBridge.pm
UPD 2024-05-21_09:01:54 127762 FHEM/74_GardenaSmartDevice.pm