FIX: some code cleanup

This commit is contained in:
Dominik Meyer 2024-02-18 20:56:13 +01:00
parent 2010eb7e07
commit 9f8f6afa64
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97
1 changed files with 3 additions and 3 deletions

View File

@ -313,9 +313,9 @@ sub NTFY_Publish_Msg
my $param = {
url => $url,
timeout => 5,
hash => $hash, # Muss gesetzt werden, damit die Callback funktion wieder $hash hat
hash => $hash,
method => "POST",
data => to_json($message), # Lesen von Inhalten
data => to_json($message),
callback => sub () {
my ($param, $err, $data) = @_;
my $hash = $param->{hash};
@ -335,7 +335,7 @@ sub NTFY_Publish_Msg
readingsBulkUpdateIfChanged($hash, "lastEror", "");
readingsEndUpdate($hash,1);
} # Diese Funktion soll das Ergebnis dieser HTTP Anfrage bearbeiten
}
};
HttpUtils_NonblockingGet($param);
}