* 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
* Add tests for sensor platform
* Add tests for switch platform
* Add tests for button platform
* Add tests for todo platform
* Add tests for todo platform
* Load json data fixtures
* Update snapshot
* Add fixtures
* test move todo
* parametrize todo tests, test drop notification
* test todo exceptions
* some minor improvements
* test setup retry
* Test update failed
* Test coordinator rate limit
* Test date utils
* Reduce scope of PR
* remove unused assert_mock_called_with function
* update snapshot
* Update tests/components/habitica/test_init.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* 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>
* Add todo platform
* update for DataUpdateCoordinator
* set lastCron as dailies due date
* parse alternative duedate format
* fix tests
* send notification on item drop
* fix drop message
* update exception messages
* Simplified the update of user_fields by using set union
* move userFields to const
* Issue deprecation only if entity is acutally used
* Resolve issues
* user entity registry to get entity_id
* raise ServiceValidationError
* requested changes
* Move next_due_date helper function to util.py module
* some changes
* Move function to util.py
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update return signature of service calls
* Add timeout error handling in websocket api for service calls
* Update recorder tests to remove assertion on service call
* Remove timeout behavior and update callers that depend on it today
* Fix tests
* Add missing else
* await coro directly
* Fix more tests
* Update the intent task to use wait instead of timeout
* Remove script service call limits and limit constants
* Update tests that depend on service call limits
* Use wait instead of wait_for and add test
* Update homeassistant/helpers/intent.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>