insert more error handling routines
This commit is contained in:
parent
581e49aba2
commit
d1f5856ee5
@ -787,12 +787,8 @@ sub ErrorHandling($$$) {
|
||||
|
||||
readingsEndUpdate( $hash, 1 );
|
||||
|
||||
Log3 $name, 3,
|
||||
"TeslaPowerwall2AC ($name) - statusRequestERROR: http error "
|
||||
. $param->{code};
|
||||
|
||||
$hash->{actionQueue} = [];
|
||||
return;
|
||||
# $hash->{actionQueue} = [];
|
||||
# return;
|
||||
### End Error Handling
|
||||
}
|
||||
|
||||
@ -825,6 +821,12 @@ sub ResponseProcessing($$$) {
|
||||
return;
|
||||
}
|
||||
|
||||
return
|
||||
if ( defined( $decode_json->{error} )
|
||||
and $decode_json->{error}
|
||||
and defined( $decode_json->{code} )
|
||||
and $decode_json->{code} );
|
||||
|
||||
#### Verarbeitung der Readings zum passenden Path
|
||||
|
||||
if ( $path eq 'aggregates' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user