mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 07:24:21 +00:00
70_Pushover: minor improvement
git-svn-id: https://svn.fhem.de/fhem/trunk@9181 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e25462eb0f
commit
798a4ae924
@ -199,7 +199,8 @@ sub Pushover_SendCommand($$;$\%) {
|
||||
$http_proto = "http";
|
||||
}
|
||||
|
||||
$cmd .= "&token=" . $hash->{APP_TOKEN} . "&user=" . $hash->{USER_KEY};
|
||||
$cmd .= "&" if ( $cmd ne "" );
|
||||
$cmd .= "token=" . $hash->{APP_TOKEN} . "&user=" . $hash->{USER_KEY};
|
||||
|
||||
my $URL;
|
||||
my $response;
|
||||
@ -517,9 +518,7 @@ sub Pushover_ReceiveCommand($$$) {
|
||||
#------------------------------------------------------------------------------
|
||||
sub Pushover_ValidateUser ($;$) {
|
||||
my ( $hash, $update ) = @_;
|
||||
my $name = $hash->{NAME};
|
||||
my $token = $hash->{APP_TOKEN};
|
||||
my $user = $hash->{USER_KEY};
|
||||
my $name = $hash->{NAME};
|
||||
my $device = AttrVal( $name, "device", "" );
|
||||
|
||||
Log3 $name, 5, "Pushover $name: called function Pushover_ValidateUser()";
|
||||
|
Loading…
x
Reference in New Issue
Block a user