mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Add Pushsafer notify parameters (#89555)
This commit is contained in:
parent
f32b7859b8
commit
e57031b1b5
@ -40,7 +40,10 @@ ATTR_TIME2LIVE = "time2live"
|
|||||||
ATTR_PRIORITY = "priority"
|
ATTR_PRIORITY = "priority"
|
||||||
ATTR_RETRY = "retry"
|
ATTR_RETRY = "retry"
|
||||||
ATTR_EXPIRE = "expire"
|
ATTR_EXPIRE = "expire"
|
||||||
|
ATTR_CONFIRM = "confirm"
|
||||||
ATTR_ANSWER = "answer"
|
ATTR_ANSWER = "answer"
|
||||||
|
ATTR_ANSWEROPTIONS = "answeroptions"
|
||||||
|
ATTR_ANSWERFORCE = "answerforce"
|
||||||
ATTR_PICTURE1 = "picture1"
|
ATTR_PICTURE1 = "picture1"
|
||||||
|
|
||||||
# Attributes contained in picture1
|
# Attributes contained in picture1
|
||||||
@ -120,7 +123,10 @@ class PushsaferNotificationService(BaseNotificationService):
|
|||||||
"pr": data.get(ATTR_PRIORITY, ""),
|
"pr": data.get(ATTR_PRIORITY, ""),
|
||||||
"re": data.get(ATTR_RETRY, ""),
|
"re": data.get(ATTR_RETRY, ""),
|
||||||
"ex": data.get(ATTR_EXPIRE, ""),
|
"ex": data.get(ATTR_EXPIRE, ""),
|
||||||
|
"cr": data.get(ATTR_CONFIRM, ""),
|
||||||
"a": data.get(ATTR_ANSWER, ""),
|
"a": data.get(ATTR_ANSWER, ""),
|
||||||
|
"ao": data.get(ATTR_ANSWEROPTIONS, ""),
|
||||||
|
"af": data.get(ATTR_ANSWERFORCE, ""),
|
||||||
"p": picture1_encoded,
|
"p": picture1_encoded,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user