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