Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the habitica integration."""
2 
3 from homeassistant.const import CONF_PATH
4 
5 CONF_API_USER = "api_user"
6 
7 DEFAULT_URL = "https://habitica.com"
8 ASSETS_URL = "https://habitica-assets.s3.amazonaws.com/mobileApp/images/"
9 SITE_DATA_URL = "https://habitica.com/user/settings/siteData"
10 FORGOT_PASSWORD_URL = "https://habitica.com/forgot-password"
11 SIGN_UP_URL = "https://habitica.com/register"
12 HABITICANS_URL = "https://habitica.com/static/img/home-main@3x.ffc32b12.png"
13 
14 DOMAIN = "habitica"
15 
16 # service constants
17 SERVICE_API_CALL = "api_call"
18 ATTR_PATH = CONF_PATH
19 ATTR_ARGS = "args"
20 
21 # event constants
22 EVENT_API_CALL_SUCCESS = f"{DOMAIN}_{SERVICE_API_CALL}_success"
23 ATTR_DATA = "data"
24 
25 MANUFACTURER = "HabitRPG, Inc."
26 NAME = "Habitica"
27 
28 UNIT_TASKS = "tasks"
29 
30 ATTR_CONFIG_ENTRY = "config_entry"
31 ATTR_SKILL = "skill"
32 ATTR_TASK = "task"
33 ATTR_DIRECTION = "direction"
34 ATTR_TARGET = "target"
35 ATTR_ITEM = "item"
36 SERVICE_CAST_SKILL = "cast_skill"
37 SERVICE_START_QUEST = "start_quest"
38 SERVICE_ACCEPT_QUEST = "accept_quest"
39 SERVICE_CANCEL_QUEST = "cancel_quest"
40 SERVICE_ABORT_QUEST = "abort_quest"
41 SERVICE_REJECT_QUEST = "reject_quest"
42 SERVICE_LEAVE_QUEST = "leave_quest"
43 SERVICE_SCORE_HABIT = "score_habit"
44 SERVICE_SCORE_REWARD = "score_reward"
45 
46 SERVICE_TRANSFORMATION = "transformation"
47 
48 
49 WARRIOR = "warrior"
50 ROGUE = "rogue"
51 HEALER = "healer"
52 MAGE = "wizard"
53 
54 DEVELOPER_ID = "4c4ca53f-c059-4ffa-966e-9d29dd405daf"