converted html to a boolean and updated documentation and schema
This commit is contained in:
parent
3ab4b45041
commit
61e4eeff6c
@ -1664,11 +1664,11 @@ properties:
|
||||
that device instead of all devices.
|
||||
example: pixel8
|
||||
html:
|
||||
type: integer
|
||||
type: boolean
|
||||
description: |
|
||||
Set to 1 to enable HTML parsing of the message. Set
|
||||
to 0 for plain text.
|
||||
example: 1
|
||||
Set to True to enable HTML parsing of the message.
|
||||
Set to False for plain text.
|
||||
example: True
|
||||
sound:
|
||||
type: string
|
||||
description: |
|
||||
@ -1740,11 +1740,11 @@ properties:
|
||||
that device instead of all devices.
|
||||
example: pixel8
|
||||
html:
|
||||
type: integer
|
||||
type: boolean
|
||||
description: |
|
||||
Set to 1 to enable HTML parsing of the message. Set
|
||||
to 0 for plain text.
|
||||
example: 1
|
||||
Set to True to enable HTML parsing of the message.
|
||||
Set to False for plain text.
|
||||
example: True
|
||||
sound:
|
||||
type: string
|
||||
description: |
|
||||
@ -1815,11 +1815,11 @@ properties:
|
||||
that device instead of all devices.
|
||||
example: pixel8
|
||||
html:
|
||||
type: integer
|
||||
type: boolean
|
||||
description: |
|
||||
Set to 1 to enable HTML parsing of the message. Set
|
||||
to 0 for plain text.
|
||||
example: 1
|
||||
Set to True to enable HTML parsing of the message.
|
||||
Set to False for plain text.
|
||||
example: True
|
||||
sound:
|
||||
type: string
|
||||
description: |
|
||||
|
@ -48,6 +48,11 @@ def ping_monitor(hook_config, config, config_filename, state, monitoring_log_lev
|
||||
state_config.pop('expire', None)
|
||||
state_config.pop('retry', None)
|
||||
|
||||
state_config = {
|
||||
key: (1 if value is True and key in 'html' else value)
|
||||
for key, value in state_config.items()
|
||||
}
|
||||
|
||||
data = dict(
|
||||
{
|
||||
'token': token,
|
||||
|
@ -333,7 +333,7 @@ pushover:
|
||||
message: "Backup <b>Started</b>"
|
||||
priority: -2
|
||||
title: "Backup Started"
|
||||
html: 1
|
||||
html: True
|
||||
ttl: 10 # Message will be deleted after 10 seconds.
|
||||
fail:
|
||||
message: "Backup <font color='#ff6961'>Failed</font>"
|
||||
@ -342,7 +342,7 @@ pushover:
|
||||
retry: 30 # Used only for priority 2. Default is 30 seconds.
|
||||
device: "pixel8"
|
||||
title: "Backup Failed"
|
||||
html: 1
|
||||
html: True
|
||||
sound: "siren"
|
||||
url: "https://ticketing-system.example.com/login"
|
||||
url_title: "Login to ticketing system"
|
||||
@ -350,7 +350,7 @@ pushover:
|
||||
message: "Backup <font color='#77dd77'>Finished</font>"
|
||||
priority: 0
|
||||
title: "Backup Finished"
|
||||
html: 1
|
||||
html: True
|
||||
ttl: 60
|
||||
url: "https://ticketing-system.example.com/login"
|
||||
url_title: "Login to ticketing system"
|
||||
|
Loading…
x
Reference in New Issue
Block a user