* refactor habitica sensors, add strings and icon translations * Change sensor names * remove max_health as it is a fixed value * remove SENSOR_TYPES * removed wrong sensor * Move Data coordinator to separate module * add coordinator.py to coveragerc * add deprecation warning for task sensors * remove unused imports and logger * Revert "add deprecation warning for task sensors" This reverts commit9e58053f3b
. * Update homeassistant/components/habitica/strings.json Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/habitica/strings.json Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Revert "Move Data coordinator to separate module" This reverts commitf5c8c3c886
. * Revert "add coordinator.py to coveragerc" This reverts commit8ae07a4786
. * rename Mana max. to Max. mana * deprecation for yaml import * move SensorType definition before TASK_TYPES * Revert "deprecation for yaml import" This reverts commit2a1d58ee5f
. --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
20 lines
420 B
Python
20 lines
420 B
Python
"""Constants for the habitica integration."""
|
|
|
|
from homeassistant.const import CONF_PATH
|
|
|
|
CONF_API_USER = "api_user"
|
|
|
|
DEFAULT_URL = "https://habitica.com"
|
|
DOMAIN = "habitica"
|
|
|
|
# service constants
|
|
SERVICE_API_CALL = "api_call"
|
|
ATTR_PATH = CONF_PATH
|
|
ATTR_ARGS = "args"
|
|
|
|
# event constants
|
|
EVENT_API_CALL_SUCCESS = f"{DOMAIN}_{SERVICE_API_CALL}_success"
|
|
ATTR_DATA = "data"
|
|
|
|
MANUFACTURER = "HabitRPG, Inc."
|
|
NAME = "Habitica"
|