mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Update pushsafer.py (#16060)
This commit is contained in:
parent
121abb450a
commit
1f0d113688
@ -32,6 +32,10 @@ ATTR_ICONCOLOR = 'iconcolor'
|
||||
ATTR_URL = 'url'
|
||||
ATTR_URLTITLE = 'urltitle'
|
||||
ATTR_TIME2LIVE = 'time2live'
|
||||
ATTR_PRIORITY = 'priority'
|
||||
ATTR_RETRY = 'retry'
|
||||
ATTR_EXPIRE = 'expire'
|
||||
ATTR_ANSWER = 'answer'
|
||||
ATTR_PICTURE1 = 'picture1'
|
||||
|
||||
# Attributes contained in picture1
|
||||
@ -106,6 +110,10 @@ class PushsaferNotificationService(BaseNotificationService):
|
||||
'u': data.get(ATTR_URL, ""),
|
||||
'ut': data.get(ATTR_URLTITLE, ""),
|
||||
'l': data.get(ATTR_TIME2LIVE, ""),
|
||||
'pr': data.get(ATTR_PRIORITY, ""),
|
||||
're': data.get(ATTR_RETRY, ""),
|
||||
'ex': data.get(ATTR_EXPIRE, ""),
|
||||
'a': data.get(ATTR_ANSWER, ""),
|
||||
'p': picture1_encoded
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user