Commit Graph

80 Commits (llm-task-pref)

Author SHA1 Message Date
epenet ed9fd2c643
Use async_load_fixture in async test functions (b-i) (#145714)
* Use async_load_fixture in async test functions (b-i)

* Adjust
2025-06-01 06:31:37 -07:00
Erik Montnemery 4e1d5fbeb0
Add WS command to help reset custom entity_id (#145504)
* Add WS command to help reset custom entity_id

* Calculate suggested object id from entity properties

* Fix logic and add additional tests

* Adjust test

* Update folder_watcher test

* Handle current entity id matches the automatic entity id

* Don't store calculated_object_id

* Update snapshots

* Update snapshots

* Update test

* Tweak logic for reusing current entity_id

* Improve test

* Don't assign same entity_id to several entities

* Prioritize custom entity name

* Update snapshots

* Update snapshots
2025-05-26 19:28:27 +02:00
Manu 2f318927bc
Add pending damage and pending quest items sensors (#145449)
Add pending damage and quest items sensors
2025-05-22 23:10:49 +02:00
Manu 8b3bad1f54
Bump habiticalib to v.0.4.0 (#145414)
Bump habiticalib to v0.4.0
2025-05-22 07:22:50 +02:00
Manu 5250590b17
Remove deprecated action `api_call` from Habitica integration (#143978) 2025-05-01 09:28:25 +02:00
Manu bf1c138a3c
Fix some mistakes in the Habitica tests (#143465) 2025-04-22 20:53:09 +02:00
Manu b01eac3ba5
Fix error in recurrence calculation of Habitica integration (#142759)
Fix error in rrule calculation of Habitica integration
2025-04-11 19:39:40 +02:00
Manu 348ebe1402
Adds `create_daily` action to Habitica integration (#140684)
Add create_daily action
2025-03-25 10:27:21 +01:00
Manu 78a04776e4
Add update_daily action to Habitica integration (#140328)
* add update_daily action

* day strings
2025-03-14 16:49:56 +01:00
Manu e2d4e8b65d
Add create_todo action to Habitica integration (#140090) 2025-03-09 13:47:15 +01:00
Manu 3ccb7d80f3
Add `update_todo` action to Habitica (#139799)
* update_todo action

* fix strings
2025-03-07 19:40:17 +01:00
Manu 50ba93042b
Add create_habit action to Habitica integration (#139673) 2025-03-04 21:43:49 +00:00
Manu b0b5567316
Add `update_habit` action to Habitica integration (#139311)
* Add update_habit action

* icons
2025-03-02 14:04:13 +01:00
Manu 3588784f1e
Add create_reward action to Habitica integration (#139304)
Add create_reward action to Habitica
2025-03-01 22:27:31 +01:00
Manu 9ec9110e1e
Rename description field to notes in Habitica action (#139271) 2025-02-25 17:03:31 +01:00
Manu 2509353221
Add update reward action to Habitica integration (#139157) 2025-02-25 13:40:21 +01:00
Manu 2e5f56b70d
Refactor to-do list order and reordering in Habitica (#138566) 2025-02-24 16:36:20 +00:00
Manu 059a6dddbe
Fix off by one bug when sorting tasks in Habitica integration (#138993)
* Fix off-by-one bug when sorting dailies and to-dos in Habitica

* Add test
2025-02-21 09:39:24 -06:00
Manu 7bd2c1d710
Refactor and add tests to image platform of Habitica (#135897) 2025-02-14 15:20:19 +00:00
Manu e71f8c444b
Add user profile info to Habitica sensor and device URL (#137152)
Add user profile attributes to Habitica sensor and device URL
2025-02-11 11:41:11 +01:00
Manu dc07f72fc2
Bump habiticalib to v0.3.7 (#137993)
* bump habiticalib to 0.3.6

* bump to v0.3.7
2025-02-10 20:37:54 +01:00
Erik Montnemery 4b34d1bbb5
Merge config subentry feature branch to dev (#136121)
* Reapply "Add support for subentries to config entries" (#133470) (#136061)

* Reapply "Add support for subentries to config entries" (#133470)

This reverts commit ecb3bf79f3.

* Update test snapshot

* Add config subentry support to device registry (#128157)

* Add config subentry support to device registry

* Apply suggestions from code review

* Update syrupy serializer

* Update snapshots

* Address review comments

* Allow a device to be connected to no or a single subentry of a config entry

* Update snapshots

* Revert "Allow a device to be connected to no or a single subentry of a config entry"

This reverts commit ec6f613151cb4a806b7961033c004b71b76510c2.

* Update test snapshots

* Bump release version in comments

* Rename config_subentries to config_entries_subentries

* Add config subentry support to entity registry (#128155)

* Add config subentry support to entity registry

* Update syrupy serializer

* Update snapshots

* Update snapshots

* Accept suggested changes

* Clean registries when removing subentry (#136671)

* Clean up registries when removing subentry

* Update tests

* Clean up subentries from deleted devices when removing config entry (#136669)

* Clean up subentries from deleted devices when removing config entry

* Move

* Add config subentry support to entity platform (#128161)

* Add config subentry support to entity platform

* Rename subentry_id to config_subentry_id

* Store subentry type in subentry (#136687)

* Add reconfigure support to config subentries (#133353)

* Add reconfigure support to config subentries

* Update test

* Minor adjustment

* Rename supported_subentry_flows to supported_subentry_types

* Address review comments

* Add subentry support to kitchen sink (#136755)

* Add subentry support to kitchen sink

* Add subentry reconfigure support to kitchen_sink

* Update kitchen_sink tests with subentry type stored in config entry

* Update kitchen_sink

* Update kitchen_sink

* Adjust kitchen sink tests

* Fix hassfest

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Improve docstrings and strings.json

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-02-10 16:40:07 +01:00
Manu c4454ad5ea
Bump habiticalib to v0.3.5 (#137510) 2025-02-06 08:32:56 +01:00
Manu d55a6de01b
Bump habiticalib to v0.3.4 (#137148)
Bump habiticalib to version 0.3.4
2025-02-02 10:08:14 +02:00
Manu ff80a7c5bc
Add reconfiguration flow to Habitica (#136038) 2025-01-20 09:25:45 +01:00
Manu ec45cb4939
Improve exception handling in Habitica integration (#135950) 2025-01-19 19:51:55 +01:00
Manu f5dd3ef530
Increase test coverage in Habitica integration (#135896)
Add tests to Habitica integration
2025-01-18 12:59:23 +01:00
Manu 526277da0f
Add entity pictures to Habitica integration (#134179) 2025-01-14 15:23:22 +01:00
Manu 0c144092c6
Bump habiticalib to v.0.3.3 (#135551) 2025-01-14 10:07:23 +01:00
Manu cdcc7dbbe8
Deprecate sensors in Habitica integration (#134036)
* Deprecate sensors

* move to setup, remove disabled

* changes

* add breaking version to string

* fixes

* fix entity id in tests
2025-01-13 18:35:14 +01:00
Manu 4dbf2b0320
Fix grey dailies with weekly frequency and no weekdays selected in Habitica (#135419) 2025-01-13 13:20:15 +01:00
Manu 0d85f54e76
Add sensors for inventory items to Habitica (#135331)
Add sensors for inventory items
2025-01-11 21:31:36 +01:00
Manu bf747bb733
Fix Habitica gems/hourglass sensors (#135323) 2025-01-10 23:47:05 +02:00
Manu 9320ccfa4f
Remove deprecated sensors in Habitica integration (#134320)
* Remove deprecated sensors

* remove todos/dailies also from enum
2025-01-03 14:48:26 +01:00
Manu 5726d090b0
Add get_tasks action to Habitica integration (#127687)
Add get_tasks action
2025-01-03 11:53:30 +01:00
Manu b45c68554c
Remove habitipy references in Habitica integration (#134419) 2025-01-02 10:47:40 +01:00
Manu 9804e8aa98
Add reauth flow to Habitica integration (#131676)
* Add reauth flow to Habitica integration

* tests, invalid_credentials string

* test only api_key

* section consts

* test config entry

* test reauth is triggered

* set reauthentication-flow to done

* use consts in tests

* reauth_entry

* changes

* fix import

* changes
2024-12-29 21:12:36 +01:00
Manu 0db07a033b
Migrate Habitica integration to habiticalib (#131032)
* Migrate data to habiticalib

* Add habiticalib to init and coordinator

* Migrate Habitica config flow to habiticalib

* migrate init to habiticalib

* migrate buttons to habiticalib

* migrate switch to habiticalib

* update habiticalib

* cast_skill action

* migrate update_score

* migrate transformation items action

* migrate quest actions

* fix fixture errors

* Migrate coordinator data and content

* bump habiticalib

* Remove habitipy and use wrapper in habiticalub

* changes

* some fixes

* minor refactoring

* class_needed annotation

* Update diagnostics

* do integration setup in coordinator setup

* small changes

* raise HomeAssistantError for TooManyRequestsError

* fix docstring

* update tests

* changes to tests/snapshots

* fix update_todo_item
2024-12-29 15:00:31 +01:00
Manu 9ca9e787b2
Add tests for Habitica integration (#131780)
* Add tests for Habitica integration

* update iqs
2024-12-17 09:07:18 +01:00
Manu 2edcda47b0
Add diagnostics platform to Habitica (#131489) 2024-11-26 20:02:01 +01:00
Manu c9ede11b1f
Add entity picture for mystic hourglasses to Habitica (#131428) 2024-11-24 11:31:32 +01:00
Manu e6715fd4d7
Fix errors in fixtures and tests (#131388)
* Fix errors in fixtures and tests

* stale function name
2024-11-23 10:44:40 -08: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 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 1f43dc6676
Fix cast skill test in Habitica (#130213) 2024-11-09 13:12:04 +01:00
Manu 4e2f5bdb7d
Add tests for cast skill action in Habitica (#129596) 2024-11-09 12:45:50 +01:00