70_LaMetric2: fix msgCancel

git-svn-id: https://svn.fhem.de/fhem/trunk@18534 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2019-02-08 16:15:24 +00:00
parent e49aa2d96f
commit a97379d200

View File

@@ -754,12 +754,7 @@ sub LaMetric2_ReceiveCommand($$$) {
# If we received a response to a write command,
# make that data available
if ( $method ne "GET"
&& ref($response) eq "HASH"
&& defined( $response->{success} )
&& ref( $response->{success} ) eq "HASH"
&& defined( $response->{success}->{path} ) )
{
if ( $method ne "GET" && $method ne "DELETE" ) {
my $endpoint = $response->{success}->{path};
$endpoint =~ s/^(.*[\\\/])//;
$response->{$endpoint} = $response->{success}{data};