Skip to content

Commit

Permalink
notifier - on click show task
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixellion committed Jan 5, 2023
1 parent 1b2ebf2 commit 2b0cfd7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,11 @@ def notifier_task_hash(task, label=""):
response = requests.post(url, headers=headers, json={
"entity_id": config['homeassistant']['script_entity_id'],
"variables":
{"title": f"Todoist Item is Due!",
"message": item['content']}
{
"title": f"Todoist Item is Due!",
"message": item['content'],
"clickAction": f"https://todoist.com/showTask?id={item['id']}" # Set url to open todoist item
}
}
)
with open(notified_filepath, "a+") as f:
Expand Down

0 comments on commit 2b0cfd7

Please sign in to comment.