* Added support for Habitica Second refactoring Moved all config to component. Sensors are autodiscovered. Signed-off-by: delphi <cpp.create@gmail.com> * Apply requested changes Signed-off-by: delphi <cpp.create@gmail.com> * Made event fire async. Made `sensors` config implicit and opt-out-style. Signed-off-by: delphi <cpp.create@gmail.com> * Removed unneeded check and await. Signed-off-by: delphi <cpp.create@gmail.com> * Moved into separate component package and added service.yaml Signed-off-by: delphi <cpp.create@gmail.com> * Fix coveralls Signed-off-by: delphi <cpp.create@gmail.com>
16 lines
663 B
YAML
16 lines
663 B
YAML
# Describes the format for Habitica service
|
|
|
|
---
|
|
api_call:
|
|
description: Call Habitica api
|
|
fields:
|
|
name:
|
|
description: Habitica's username to call for
|
|
example: 'xxxNotAValidNickxxx'
|
|
path:
|
|
description: "Items from API URL in form of an array with method attached at the end. Consult https://habitica.com/apidoc/. Example uses https://habitica.com/apidoc/#api-Task-CreateUserTasks"
|
|
example: '["tasks", "user", "post"]'
|
|
args:
|
|
description: Any additional json or url parameter arguments. See apidoc mentioned for path. Example uses same api endpoint
|
|
example: '{"text": "Use API from Home Assistant", "type": "todo"}'
|