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/127150/head
Aaron Godfrey 2025-02-03 08:06:21 -08:00 committed by GitHub
parent 30af9057d1
commit 9856340a33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 6 deletions

View File

@ -541,9 +541,8 @@ class TodoistProjectData:
return None
# All task Labels (optional parameter).
task[LABELS] = [
label.name for label in self._labels if label.name in data.labels
]
labels = data.labels or []
task[LABELS] = [label.name for label in self._labels if label.name in labels]
if self._label_whitelist and (
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",
"iot_class": "cloud_polling",
"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
# homeassistant.components.todoist
todoist-api-python==2.1.2
todoist-api-python==2.1.7
# homeassistant.components.tolo
tololib==1.1.0

View File

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

View File

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