Allen Porter
368a1a944a
Remove the uniqueid from todoist ( #100206 )
2023-09-12 21:08:13 +02:00
Allen Porter
183b77973f
Add configuration flow to Todoist integration ( #100094 )
...
* Add config flow to todoist
* Fix service calls for todoist
* Fix configuration entry test setup
* Bump test coverage to 100%
* Apply pr feedback
2023-09-11 22:56:08 -07:00
Marc Mueller
525f39fe28
Update todoist-api-python to 2.1.2 ( #98383 )
2023-08-14 14:10:45 +02:00
Marc Mueller
07e20e1eab
Downgrade todoist-api-python to 2.0.2 and attrs to 22.2.0 ( #98354 )
2023-08-13 17:23:38 -05:00
Marc Mueller
85b097af50
Update todoist-api-python to 2.1.1 ( #98263 )
2023-08-12 09:39:59 -07:00
Franck Nijhof
4edec69637
Migrate integration services (T-V) to support translations ( #96379 )
2023-07-12 07:37:13 +02:00
Ville Skyttä
1ce74ba25c
Import util.dt
as dt_util
in components/[t-z]*
( #93763 )
2023-05-29 23:00:43 +02:00
Aaron Godfrey
bb170a2bbf
Fix todoist end time for tasks with due date in the future ( #91874 )
...
Fix end time for tasks with due date in the future.
Co-authored-by: Allen Porter <allen@thebends.org>
2023-05-27 10:09:11 -07:00
Aaron Godfrey
89f1677307
Fix todoist state updates ( #91915 )
...
* Update event when coordinator updates data.
* Move function to make diff easier to view
* Actually make it easier to view
* Move all tasks calculation to extra_state_attributes.
2023-05-24 14:46:13 +02:00
epenet
07aef27ea8
Fix lingering timer in todoist ( #91808 )
2023-04-21 16:41:54 +02:00
Allen Porter
4c5746d6ed
Update Todoist all day event handling following best practices ( #90491 )
2023-04-17 14:21:49 +02:00
Aaron Godfrey
7061b104a9
Fix tasks with no due date from not triggering on
calendar state. ( #91196 )
...
Fix tasks with no due date.
Prior to this change we were setting the start date/time to utc rather
than the user's timezone.
2023-04-13 21:12:58 -07:00
Aaron Godfrey
9ccd43e5f1
Add DataUpdateCoordinator to the Todoist integration ( #89836 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-28 18:57:24 +02:00
Aaron Godfrey
8b7594ae08
Look up todoist collaborators only when adding new task ( #87957 )
...
* Look up collaborators only when adding new task.
Also fixed a few api call arguments that were incorrect. The `labels`
key should have been a list of strings and the `assignee` key should
have been `assignee_id`.
* Add missing type in test.
* Remove print
2023-03-28 09:33:32 +02:00
Aaron Godfrey
745df277a0
Fix Todoist end date for all day event ( #89837 )
2023-03-26 22:08:36 +02:00
Aaron Godfrey
ab9bd5c29e
Fix todoist filtering custom projects by labels ( #87904 )
...
* Fix filtering custom projects by labels.
* Don't lowercase the label.
* Labels are case-sensitive, don't lowercase them.
2023-03-01 12:01:54 +01:00
Erik Montnemery
b0b1d8143f
Sort manifests 10 ( #87031 )
2023-02-08 20:41:50 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 ( #87347 )
2023-02-03 23:08:48 +01:00
Aaron Godfrey
8cbbdf21f3
Update todoist integration to use new official rest api library ( #79481 )
...
* Swapping out libraries.
* Adding types
* Add ability to add task.
* Removed remaining todos.
* Fix lint errors.
* Fixing tests.
* Update to v2 of the rest api.
* Swapping out libraries.
* Adding types
* Add ability to add task.
* Removed remaining todos.
* Fix lint errors.
* Fix mypy errors
* Fix custom projects.
* Bump DEPENDENCY_CONFLICTS const
* Remove conflict bump
* Addressing PR feedback.
* Removing utc offset logic and configuration.
* Addressing PR feedback.
* Revert date range logic check
2022-12-30 09:49:35 -08:00
Aaron Godfrey
3405fa60ec
Add more types to the todoist integration ( #84210 )
...
* Add more types to the todoist integration.
* Update tests.
* Update homeassistant/components/todoist/calendar.py
Pass f-string directly to strftime.
Co-authored-by: Allen Porter <allen.porter@gmail.com>
* Add back mistakenly removed local var.
Co-authored-by: Allen Porter <allen.porter@gmail.com>
2022-12-19 20:29:57 -08:00
epenet
458001a06e
Improve entity type hints [t] ( #77883 )
2022-09-06 13:35:52 +02:00
Aaron Godfrey
91384e07d0
Add unique id for todoist calendar entity ( #75674 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-01 17:15:51 +02:00
Allen Porter
f99b6004ea
Cleanup calendar APIs and introduce a dataclass for representing events ( #68843 )
...
* Introduce data class to hold calendar event data
* Rename CalendarEventDevice to CalendarEntity
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix docstring on google calendar api conversion function.
* Update todoist to new calendar enttiy api, tested manually
* Add back old API for a legacy compatibility layer
* Add deprecation warning for old calendar APIs
* Fix deprecation warning
* Fix merge for missing summary #69520
* Add mypy typing for newly introduced classes
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-10 12:04:07 -07:00
Aaron Godfrey
d302b0d14e
Fix todoist parsing due dates for calendar events ( #65403 )
2022-03-07 22:00:39 -08:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json ( #65083 )
2022-01-28 13:37:53 -08:00
Kai Bepperling
5954ca2b1f
Add ToDoist Assignee option for new task service ( #63918 )
...
Co-authored-by: Aaron Godfrey <me@aarongodfrey.dev>
2022-01-21 11:13:16 +01:00
epenet
ce6206b422
Add calendar setup type hints ( #63272 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 13:14:02 +01:00
epenet
71a5b89691
Ensure service calls are typed in todoist ( #63020 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 17:17:55 +01:00
Aaron Godfrey
c70a7020f5
Fix todoist due_today attribute for calendar events ( #60038 )
...
The attribute was comparing a UTC date to a local date which caused the
attribute to not be true in some cases.
2021-11-22 12:03:56 +01:00
Marc Mueller
84618fa831
Use assignment expressions 30 ( #58714 )
2021-10-30 16:33:42 +02:00
jan iversen
336aa74317
Activate mypy for todoist ( #55096 )
2021-08-24 11:23:33 +02:00
serenewaffles
2bcfae6998
Fix typo in Todoist service description ( #54662 )
2021-08-16 15:23:48 +02:00
Koen Kanters
2576dd9da9
Fix Todoist incorrect end date when task has no time ( #52258 )
2021-06-29 10:15:50 -07:00
tkdrob
028a07d86f
Wrap up selectors ( #50794 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
tkdrob
d37a3cded0
Add targets and selectors for services (S-T) ( #50629 )
2021-05-14 22:30:41 -07:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest ( #46935 )
2021-04-15 10:21:38 +02:00
Marc Mueller
8e2b5b36b5
Bump pyupgrade to 2.12.0 ( #48943 )
2021-04-09 09:58:27 -07:00
Erik Montnemery
1fc8e32d86
Update integrations t-z to override extra_state_attributes() ( #47760 )
2021-03-11 20:16:26 +01:00
Sam Steele
bf64421be9
Use the local timezone when parsing Todoist due dates ( #45994 )
2021-03-09 20:52:32 -08:00
Guliver
b00086ca1f
Use fixed due date only for comparison in todoist ( #43300 )
2021-01-30 17:21:04 +01:00
Matej Drobnič
b533b91b10
Add reminder support to todoist.new_task service ( #44142 )
...
* add reminder support to todoist.new_task service
* fix time support on reminder_date
* fix time support on todoist due_date
2021-01-26 23:26:29 +01:00
springstan
513f03eb1f
Return attribute dict directly without temporary variable v2 ( #41271 )
2020-10-06 16:55:16 +02:00
Aaron Godfrey
16ad8cf720
Fix todoist calendar events ( #39197 )
...
Updated the calendar event dict to contain a `summary` key so that the
title will display on the calendar panel. Also update the start/end
date to not include time information if the event is all day so that it
renders as an all day event on the calendar panel.
2020-08-28 16:43:40 -05:00
Aaron Godfrey
e347f3770c
Use SCAN_INTERVAL instead of Throttle to allow manual todoist updates ( #35297 )
2020-06-03 01:37:41 +02:00
Steven Rollason
514c64619a
Check todoist due date is not None in async_get_events ( #36140 )
...
* Check that due date is not None
Check that due date is not None, prevents taks without due dates from breaking Calendar API
* Invert None check to reduce indentation
2020-05-26 10:39:53 -04:00
Franck Nijhof
39336d3ea3
Add prettier (in pre-commit and CI) ( #33693 )
...
* Add prettier (in pre-commit and CI)
* Make all file prettier
* Change order
* Add to Azure Pipelines
* Fix a YAML file prettier caught as invalid
* Remove flow mapping using curly braces from all YAML service files
2020-04-05 17:27:16 +02:00
Paulus Schoutsen
f1d3c0d19b
Remove unused manifest fields ( #33595 )
2020-04-03 12:58:19 -07:00
Franck Nijhof
a84741392b
Format all manifests with prettier ( #30521 )
2020-01-06 21:28:23 +01:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Aaron Godfrey
012c09ce00
Fix example value for Todoist service ( #29953 )
2019-12-15 18:47:11 +01:00