{"action":"closed","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/17002","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/17002/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/17002/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/17002/events","html_url":"https://github.com/home-assistant/home-assistant/issues/17002","id":365223716,"node_id":"MDU6SXNzdWUzNjUyMjM3MTY=","number":17002,"title":"Todoist can't create tasks with a label","user":{"login":"rossdargan","id":1276400,"node_id":"MDQ6VXNlcjEyNzY0MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1276400?v=4","gravatar_id":"","url":"https://api.github.com/users/rossdargan","html_url":"https://github.com/rossdargan","followers_url":"https://api.github.com/users/rossdargan/followers","following_url":"https://api.github.com/users/rossdargan/following{/other_user}","gists_url":"https://api.github.com/users/rossdargan/gists{/gist_id}","starred_url":"https://api.github.com/users/rossdargan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossdargan/subscriptions","organizations_url":"https://api.github.com/users/rossdargan/orgs","repos_url":"https://api.github.com/users/rossdargan/repos","events_url":"https://api.github.com/users/rossdargan/events{/privacy}","received_events_url":"https://api.github.com/users/rossdargan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-30T13:13:03Z","updated_at":"2018-10-07T16:32:54Z","closed_at":"2018-10-07T16:32:54Z","author_association":"NONE","body":"<!-- READ THIS FIRST:\r\n- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/\r\n- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases\r\n- Do not report issues for components if you are using custom components: files in <config-dir>/custom_components\r\n- This is for bugs only. Feature and enhancement requests should go in our community forum: https://community.home-assistant.io/c/feature-requests\r\n- Provide as many details as possible. Paste logs, configuration sample and code into the backticks. Do not delete any text from this template!\r\n-->\r\n\r\n**Home Assistant release with the issue:**\r\n<!--\r\n- Frontend -> Developer tools -> Info\r\n- Or use this command: hass --version\r\n-->\r\n0.79.0\r\n\r\n**Last working Home Assistant release (if known):**\r\nNot known\r\n\r\n**Operating environment (Hass.io/Docker/Windows/etc.):**\r\n<!--\r\nPlease provide details about your environment.\r\n-->\r\nDocker\r\n\r\n**Component/platform:**\r\n<!--\r\nPlease add the link to the documentation at https://www.home-assistant.io/components/ of the component/platform in question.\r\n-->\r\nhttps://www.home-assistant.io/components/calendar.todoist/\r\n\r\n**Description of problem:**\r\nCreating a task using the todoist_new_task service (https://www.home-assistant.io/components/calendar.todoist/#services) works for everything apart from the labels. If you have a label you get an error.\r\n\r\nCalling the service with the following:\r\n```{\"content\":\"test\", \"labels\":\"Chores\"}```\r\n\r\nresults in the following error:\r\n```\r\nError executing service <ServiceCall calendar.todoist_new_task (c:8cd89a2866e142caa5eb6006b7947508): content=test, labels=['Chores'], project=inbox>\r\nTraceback (most recent call last):\r\n  File \"/usr/src/app/homeassistant/core.py\", line 1185, in _event_to_service_call\r\n    await self._hass.async_add_executor_job(execute_service)\r\n  File \"/usr/local/lib/python3.6/concurrent/futures/thread.py\", line 56, in run\r\n    result = self.fn(*self.args, **self.kwargs)\r\n  File \"/usr/src/app/homeassistant/core.py\", line 1182, in execute_service\r\n    service_handler.func(service_call)\r\n  File \"/usr/src/app/homeassistant/components/calendar/todoist.py\", line 195, in handle_new_task\r\n    for label in task_labels]\r\n  File \"/usr/src/app/homeassistant/components/calendar/todoist.py\", line 195, in <listcomp>\r\n    for label in task_labels]\r\nKeyError: 'chores'```\r\n\r\n\r\n**Problem-relevant `configuration.yaml` entries and (fill out even if it seems unimportant):**\r\n```yaml\r\ncalendar:\r\n  - platform: todoist\r\n    token: !secret todoist\r\n```\r\n\r\n"}}
{"actor":{"display_login":"rossdargan"}}