fix: api und disablle
This commit is contained in:
parent
f38236f721
commit
640a7544d7
@ -694,16 +694,12 @@ sub ErrorHandling {
|
|||||||
|
|
||||||
}
|
}
|
||||||
elsif ( $decode_json->{errors}[0]{code} eq "ratelimit.exceeded" ) {
|
elsif ( $decode_json->{errors}[0]{code} eq "ratelimit.exceeded" ) {
|
||||||
Log3 $dname, 5,
|
Log3 $name, 5,
|
||||||
"GardenaSmartBridge ($dname) - RequestERROR: error ratelimit.exceeded";
|
"GardenaSmartBridge ($name) - RequestERROR: error ratelimit.exceeded";
|
||||||
readingsBulkUpdate( $dhash, "lastRequestState", "too many requests", 1 );
|
readingsBulkUpdate( $hash, "lastRequestState", "too many requests", 1 );
|
||||||
readingsBulkUpdate( $dhash, "state", "inactive", 1 );
|
readingsBulkUpdate( $hash, "state", "inactive", 1 );
|
||||||
# remove all timer and disable bridge
|
# remove all timer and disable bridge
|
||||||
readingsBulkUpdate( $dhash, "disable", "1", 1 );
|
RemoveInternalTimer( $hash );
|
||||||
# AttrVal( $name, 'disable', '1');
|
|
||||||
RemoveInternalTimer( $dhash, "FHEM::GardenaSmartBridge::getDevices" );
|
|
||||||
RemoveInternalTimer( $dhash, "FHEM::GardenaSmartBridge::getToken" );
|
|
||||||
|
|
||||||
|
|
||||||
return; # post request max.
|
return; # post request max.
|
||||||
}
|
}
|
||||||
|
@ -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
|
UPD 2024-05-21_09:01:54 127762 FHEM/74_GardenaSmartDevice.pm
|
||||||
|
Loading…
Reference in New Issue
Block a user