Commit Graph

167 Commits (ad7a334147213e01e45b5ea15804d75629e3f362)

Author SHA1 Message Date
Manu 9ca9e787b2
Add tests for Habitica integration (#131780)
* Add tests for Habitica integration

* update iqs
2024-12-17 09:07:18 +01:00
Manu 34911a78bd
Add Habitica quality scale record (#131429)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-12-16 13:17:38 +01:00
Manu 8e12fbff88
Refactor calendars in Habitica (#131020)
* Refactor calendars

* changes
2024-11-28 18:31:38 -08:00
Manu fe2bca51a4
Add translations for units of measurement to Habitica integration (#131761) 2024-11-28 08:12:52 +01:00
Manu 17236a5698
Remove unreachable code in Habitica (#131778) 2024-11-28 08:08:00 +01:00
Manu bf4d6d2029
Fix rounding of attributes in Habitica integration (#131772) 2024-11-28 01:35:23 +01:00
Manu 2edcda47b0
Add diagnostics platform to Habitica (#131489) 2024-11-26 20:02:01 +01:00
Manu d587e71f8d
Add descriptions for config flow in Habitica integration (#131461) 2024-11-26 10:42:03 +01:00
Manu 8b71362ae1
Set parallelism for Habitica (#131480)
* Set parallelism for Habitica

* remove from coordinator
2024-11-24 15:55:11 -08:00
Manu c9ede11b1f
Add entity picture for mystic hourglasses to Habitica (#131428) 2024-11-24 11:31:32 +01:00
Manu 5d804d3172
Remove code-owner from Habitica (#131024) 2024-11-20 12:54:11 +01:00
Manu 5daf95ec8f
Add calendars for to-do and daily reminders to Habitica integration (#130789)
* Add calendars for to-do and daily reminders

* revert order

* changes
2024-11-19 18:37:23 -08:00
Manu e9eaeedf2b
Add entity picture for gems to Habitica integration (#130827) 2024-11-18 10:52:23 +01:00
Manu e26142949d
Add action for using transformation items to Habitica (#129606) 2024-11-15 17:38:30 +01:00
Manu 980b0fa5e6
Deprecate api_call action in Habitica integration (#128119) 2024-11-10 19:37:41 +01:00
Manu 0677bba5bd
Add actions for scoring habits and rewards in Habitica (#129605) 2024-11-10 12:26:07 +01:00
Manu 5d0277a0d1
Add actions for quest handling to Habitica (#129650) 2024-11-09 19:34:25 +01:00
Manu c10f078f2a
Add sensors for attribute points (str, int, per, con) to Habitica (#130186) 2024-11-09 16:04:10 +01:00
Manu 27e81fe0ed
Improve error messages in Habitica (#129948)
Improve error messages
2024-11-06 13:23:43 +01:00
Manu 9253fa4471
Add binary sensor platform to Habitica integration (#129613)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-11-05 17:01:38 +01:00
Manu a5f3c434e0
Improve exceptions in habitica cast skill action (#129603)
* Raise a different exception when entry not loaded

* adjust type hints

* move `get_config_entry` to services module
2024-11-04 16:46:38 +01:00
Manu 2303521778
Use common translation strings for Habitica (#129498) 2024-10-30 14:56:47 +01:00
Manu 6887a4419e
Add calendar platform to Habitica integration (#128248)
* Add calendar platform

* Add tests

* add missing reminders filter by date

* Add +1 day to todo end

* add 1 day to dailies, remove unused line of code

* Removing reminders calendar to a separate PR

* fix upcoming event for dailies

* util function for rrule string

* Add test for get_recurrence_rule

* use habitica daystart and account for isDue flag

* yesterdaily is still an active event

* Fix yesterdailies and add attribute

* Update snapshot

* Use iter, return attribute with None value

* various changes

* update snapshot

* fix merge error

* update snapshot

* change date range filtering for todos

* use datetimes instead of date in async_get_events

* Sort events

* Update snapshot

* add method for todos

* filter for upcoming events

* dailies

* refactor todos

* update dailies logic

* dedent loops
2024-10-29 20:53:49 -07:00
Manu 79c602f59c
Fix available conditions for chilling frost and stealth in Habitica (#129234)
Co-authored-by: Joostlek <joostlek@outlook.com>
2024-10-29 14:24:23 +01:00
Manu f0bff09b5e
Bump habitipy to 0.3.3 (#129322) 2024-10-29 12:48:20 +01:00
Manu 8665f4a251
Refactor services setup in Habitica integration (#128186) 2024-10-25 11:00:58 +02:00
Manu 3adacb8799
Add entity picture for healing potion in Habitica (#129107) 2024-10-25 10:59:37 +02:00
Manu 39c0826f3c
Add buttons to cast skills in Habitica integration (#126350) 2024-10-24 19:54:59 +02:00
Manu 38fc0bd889
Add x-client headers to Habitica API calls (#127952)
Add x-client headers
2024-10-11 17:28:22 +02:00
Manu fa53ec40d6
Remove deprecated yaml import from Habitica (#127946) 2024-10-09 11:17:19 +02:00
Manu dd5e5323f1
Add support of due date calculation for grey dailies in Habitica integration (#127923)
Fix grey dailies due date calculation
2024-10-08 14:08:16 +02:00
Manu 3e8bc98f23
Add cast skill action to Habitica integration (#127000)
* Add cast skill action for task skills

* exceptions

* task not found exception

* request refresh to update mana/xp sensors

* Changes

* remove service_call prefix

* fixes
2024-10-06 10:33:32 +02:00
Manu fe9ae0d8bd
Add sensors for gems and mystic hourglasses to Habitica integration (#127651)
Add sensors for gems and mystic hourglasses
2024-10-05 21:27:42 +02:00
Teemu R. cd090ff000
Remove codefences from issue titles (#127254) 2024-10-02 08:27:52 +02:00
Mr. Bubbles 79872b3e1d
Fix due date calculation for future dailies in Habitica integration (#126403)
Calculate next due date for dailies with startdate in the future
2024-09-22 12:08:50 +02:00
Mr. Bubbles b787c2617b
Revert "Fix missing id in Habitica completed todos API response" (#126142)
Revert "Fix missing id in Habitica completed todos API response (#124565)"

This reverts commit c9e7c76ee5.
2024-09-19 10:59:54 +02:00
Eric Shtivelberg f5f8c44ca6
Add Habitica up/down attributes for tasks (#125356)
add: up/down
2024-09-06 15:08:30 +02:00
Mr. Bubbles 50577883dc
Add option to login with username/email and password in Habitica integration (#117622)
* add login/password authentication

* add advanced config flow

* remove unused exception classes, fix errors

* update username in init

* update tests

* update strings

* combine steps with menu

* remove username from entry

* update tests

* Revert "update tests"

This reverts commit 6ac8ad6a26547b623e217db817ec4d0cf8c91f1d.

* Revert "remove username from entry"

This reverts commit d9323fb72df3f9d41be0a53bb0cbe16be718d005.

* small changes

* remove pylint broad-excep

* run habitipy init in executor

* Add text selectors

* changes
2024-08-30 17:08:06 +02:00
Erik Montnemery cffa8b4feb
Update icons.json to new service schema part 2 (#124769) 2024-08-28 13:47:41 +02:00
epenet 318259689f
Standardize import step variable name (part 4) (#124692)
* Standardize import step variable name (part 4)

* One more

* Revert geonetnz_volcano

* Revert SMS due to coverage

* Revert somfy_mylink due to coverage
2024-08-27 16:18:11 +02:00
Mr. Bubbles c9e7c76ee5
Fix missing id in Habitica completed todos API response (#124565)
* Fix missing id in completed todos API response

* Copy id only if none

* Update homeassistant/components/habitica/coordinator.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-08-25 15:15:47 +02:00
epenet 913e5404da
Improve config flow type hints (part 1) (#124343)
* Improve config flow type hints

* Revert sms
2024-08-21 22:42:58 +02:00
Mr. Bubbles b21b300625
Disable Habitica deprecated entities by default (#123522)
Deprecated sensor task entites disable by default
2024-08-21 14:59:08 +02:00
Mr. Bubbles 4b62dcfd19
Improve rate limit handling in Habitica integration (#121763)
* Adjustments to requests and update interval due to rate limiting

* Use debounced refresh for to-do lists

* Use debounced refresh in switch and buttons

* Request refresh only if a to-do was changed

* Update task order provisionally in the coordinator
2024-08-16 11:41:04 +02:00
Mr. Bubbles 7d552b64f7
Use `clearCompletedTodos` API endpoint for deleting Habitica todos (#121877)
Use clearCompletedTodos endpoint for deleting multiple completed todo items
2024-08-15 20:06:23 +02:00
Mr. Bubbles a46fffd550
Fix wrong deprecation date in Habitica integration (#122206)
Fix wrong deprecation date
2024-07-20 00:40:29 +02:00
Mr. Bubbles 72d37036b9
Remove filtering of user data in Habitica integration (#121759)
Remove context-based userFields filtering
2024-07-19 17:56:52 +02:00
Franck Nijhof a9bf12f102
Rename Services to Actions in translation strings (#121777) 2024-07-15 21:19:25 +02:00
Mr. Bubbles c6f1ec34e2
Fix bugs Habitica to-do lists (#121755) 2024-07-11 09:11:04 +02:00
Mr. Bubbles 00aafc0cf7
Add entity base class in Habitica integration (#121320)
* Sensor refactoring

* Change todo entities to use common base entity

* Requested changes

* Update button platform to use base class

* Update swtich platform to use base entity class
2024-07-08 10:18:09 +02:00