diff --git a/custom_components/ticktick_todo/__init__.py b/custom_components/ticktick_todo/__init__.py index 8583069..3684157 100644 --- a/custom_components/ticktick_todo/__init__.py +++ b/custom_components/ticktick_todo/__init__.py @@ -28,7 +28,7 @@ PLATFORMS = [Platform.TODO] ISSUE_URL = "/~https://github.com/konikvranik/hacs_ticktick/issues" -DEBUG = True +DEBUG = False SCHEMA = { vol.Required(CONF_HOST): cv.string, diff --git a/custom_components/ticktick_todo/todo.py b/custom_components/ticktick_todo/todo.py index 1e1a1cf..d4ca4b4 100644 --- a/custom_components/ticktick_todo/todo.py +++ b/custom_components/ticktick_todo/todo.py @@ -143,7 +143,7 @@ def _task_status_to_todo_item_status(task_response: openapi_client.Task) -> Todo return None @staticmethod - async def _todo_item_status_to_task_status(todo_item): + def _todo_item_status_to_task_status(todo_item): if todo_item.status == TodoItemStatus.COMPLETED: return 2 else: