mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
70_Pushover: make url_title optional
git-svn-id: https://svn.fhem.de/fhem/trunk@19366 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
65f18413b3
commit
90efbe9d04
@ -1104,13 +1104,8 @@ sub Pushover_SetMessage2 ($$$$) {
|
||||
if ( defined( $values{url_title} )
|
||||
&& !defined( $values{action} ) );
|
||||
|
||||
return "parameter action requires parameter url_title"
|
||||
if ( defined( $values{action} )
|
||||
&& !defined( $values{url_title} ) );
|
||||
|
||||
return "messages containing a URL require parameter expire"
|
||||
if ( defined( $values{action} )
|
||||
&& defined( $values{url_title} )
|
||||
&& !defined( $values{expire} ) );
|
||||
|
||||
$values{sound} =
|
||||
@ -1226,8 +1221,7 @@ sub Pushover_SetMessage2 ($$$$) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( $values{url_title}
|
||||
&& $values{action}
|
||||
if ( $values{action}
|
||||
&& defined( $values{expire} ) )
|
||||
{
|
||||
my $url;
|
||||
@ -1251,7 +1245,7 @@ sub Pushover_SetMessage2 ($$$$) {
|
||||
}
|
||||
|
||||
Log3 $name, 5,
|
||||
"Pushover $name: Adding supplementary URL '$values{url_title}' ($url) with "
|
||||
"Pushover $name: Adding supplementary URL $url with "
|
||||
. "action '$values{action}' (expires after $values{expire} => "
|
||||
. "$values{cbNr})";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user