Fix google tasks todo docstrings (#128978)

This commit is contained in:
Allen Porter 2024-10-22 07:17:48 -07:00 committed by GitHub
parent de77751779
commit 8c0def7c79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,7 +106,7 @@ class GoogleTaskTodoListEntity(
config_entry_id: str, config_entry_id: str,
task_list_id: str, task_list_id: str,
) -> None: ) -> None:
"""Initialize LocalTodoListEntity.""" """Initialize GoogleTaskTodoListEntity."""
super().__init__(coordinator) super().__init__(coordinator)
self._attr_name = name.capitalize() self._attr_name = name.capitalize()
self._attr_unique_id = f"{config_entry_id}-{task_list_id}" self._attr_unique_id = f"{config_entry_id}-{task_list_id}"
@ -153,9 +153,9 @@ class GoogleTaskTodoListEntity(
def _order_tasks(tasks: list[dict[str, Any]]) -> list[dict[str, Any]]: def _order_tasks(tasks: list[dict[str, Any]]) -> list[dict[str, Any]]:
"""Order the task items response. """Order the task items response.
All tasks have an order amongst their sibblings based on position. All tasks have an order amongst their siblings based on position.
Home Assistant To-do items do not support the Google Task parent/sibbling Home Assistant To-do items do not support the Google Task parent/sibling
relationships and the desired behavior is for them to be filtered. relationships and the desired behavior is for them to be filtered.
""" """
parents = [task for task in tasks if task.get("parent") is None] parents = [task for task in tasks if task.get("parent") is None]