2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

70_LaMetric2: fix msgCancel

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

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};