Bump todist-api-python to 2.1.7 (#136549)

Co-authored-by: Allen Porter <allen@thebends.org>
Co-authored-by: J. Diego Rodríguez Royo <jdrr1998@hotmail.com>
pull/137390/head
Aaron Godfrey 2025-02-03 08:06:21 -08:00 committed by Franck Nijhof
parent 63c153d671
commit 809f5eea49
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
5 changed files with 7 additions and 6 deletions

View File

@ -541,9 +541,8 @@ class TodoistProjectData:
return None return None
# All task Labels (optional parameter). # All task Labels (optional parameter).
task[LABELS] = [ labels = data.labels or []
label.name for label in self._labels if label.name in data.labels task[LABELS] = [label.name for label in self._labels if label.name in labels]
]
if self._label_whitelist and ( if self._label_whitelist and (
not any(label in task[LABELS] for label in self._label_whitelist) not any(label in task[LABELS] for label in self._label_whitelist)
): ):

View File

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/todoist", "documentation": "https://www.home-assistant.io/integrations/todoist",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["todoist"], "loggers": ["todoist"],
"requirements": ["todoist-api-python==2.1.2"] "requirements": ["todoist-api-python==2.1.7"]
} }

2
requirements_all.txt generated
View File

@ -2893,7 +2893,7 @@ tilt-ble==0.2.3
tmb==0.0.4 tmb==0.0.4
# homeassistant.components.todoist # homeassistant.components.todoist
todoist-api-python==2.1.2 todoist-api-python==2.1.7
# homeassistant.components.tolo # homeassistant.components.tolo
tololib==1.1.0 tololib==1.1.0

View File

@ -2321,7 +2321,7 @@ thinqconnect==1.0.2
tilt-ble==0.2.3 tilt-ble==0.2.3
# homeassistant.components.todoist # homeassistant.components.todoist
todoist-api-python==2.1.2 todoist-api-python==2.1.7
# homeassistant.components.tolo # homeassistant.components.tolo
tololib==1.1.0 tololib==1.1.0

View File

@ -70,6 +70,7 @@ def make_api_task(
section_id=None, section_id=None,
url="https://todoist.com", url="https://todoist.com",
sync_id=None, sync_id=None,
duration=None,
) )
@ -94,6 +95,7 @@ def mock_api(tasks: list[Task]) -> AsyncMock:
url="", url="",
is_inbox_project=False, is_inbox_project=False,
is_team_inbox=False, is_team_inbox=False,
can_assign_tasks=False,
order=1, order=1,
parent_id=None, parent_id=None,
view_style="list", view_style="list",