From 7ade9497e9847e9b62d9664dcdd4dfed90873a4f Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Wed, 2 Oct 2019 08:03:23 +0200 Subject: [PATCH] test --- 46_TeslaPowerwall2AC.pm | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/46_TeslaPowerwall2AC.pm b/46_TeslaPowerwall2AC.pm index 354d1ce..52d6572 100644 --- a/46_TeslaPowerwall2AC.pm +++ b/46_TeslaPowerwall2AC.pm @@ -557,22 +557,22 @@ sub ErrorHandling($$$) { return; } - if ( ( $data =~ /Error/i ) and exists( $param->{code} ) ) { - - readingsBeginUpdate($hash); - - readingsBulkUpdate( $hash, 'state', $param->{code}, 1 ); - readingsBulkUpdate( $hash, 'lastRequestError', $param->{code}, 1 ); - - readingsEndUpdate( $hash, 1 ); - - Log3 $name, 3, - "TeslaPowerwall2AC ($name) - statusRequestERROR: http error " - . $param->{code}; - - $hash->{actionQueue} = []; - return; - } +# if ( ( $data =~ /Error/i ) and exists( $param->{code} ) ) { +# +# readingsBeginUpdate($hash); +# +# readingsBulkUpdate( $hash, 'state', $param->{code}, 1 ); +# readingsBulkUpdate( $hash, 'lastRequestError', $param->{code}, 1 ); +# +# readingsEndUpdate( $hash, 1 ); +# +# Log3 $name, 3, +# "TeslaPowerwall2AC ($name) - statusRequestERROR: http error " +# . $param->{code}; +# +# $hash->{actionQueue} = []; +# return; +# } if ( $data =~ m#{"code":(\d+),"error":"(.+)","message":"(.+)"}$# ) {