Add sensors to fetch Habitica tasks (#38910)
* Adding sensors to fetch habitica tasks * PR changes and rebase * Fixing pylint * Fixing failed test dependancy * Generating requirements * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * PR changes * Update homeassistant/components/habitica/config_flow.py Thank you, @MartinHjelmare Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * PR Changes * Fix failing test * Update tests/components/habitica/test_config_flow.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Fixing linting and imports Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
56f32196bd
commit
8c72cb6163
13 changed files with 549 additions and 96 deletions
14
homeassistant/components/habitica/const.py
Normal file
14
homeassistant/components/habitica/const.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
"""Constants for the habitica integration."""
|
||||
|
||||
from homeassistant.const import CONF_NAME, CONF_PATH
|
||||
|
||||
CONF_API_USER = "api_user"
|
||||
|
||||
DEFAULT_URL = "https://habitica.com"
|
||||
DOMAIN = "habitica"
|
||||
|
||||
SERVICE_API_CALL = "api_call"
|
||||
ATTR_NAME = CONF_NAME
|
||||
ATTR_PATH = CONF_PATH
|
||||
ATTR_ARGS = "args"
|
||||
EVENT_API_CALL_SUCCESS = f"{DOMAIN}_{SERVICE_API_CALL}_success"
|
Loading…
Add table
Add a link
Reference in a new issue