Todoist calendar has TypeError (issues with emoji?)
See original GitHub issueThe problem
I’m getting a TypeError in the logs since I added a Todoist based calendar in my dashboards. The project that seems to be having the problem has an emoji in its name, perhaps that may be the issue? I’m not sure. Have not been able to reliably reproduce it, but I think the error is clear enough that it should be possible to debug. 😃
What version of Home Assistant Core has the issue?
core-2022.6.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Todoist
Link to integration documentation on our website
https://www.home-assistant.io/integrations/todoist/
Diagnostics information
To debug this, you need to setup a Todoist project where the project name contains an emoji.
Example YAML snippet
I'm pretty sure it's provoked by this dashboard, which I created using the GUI.
title: Home
views:
- title: Debug
icon: mdi:ladybug
badges: []
cards:
- type: calendar
entities:
- calendar.bil
Anything in the logs that might be useful for us?
Logger: homeassistant.helpers.entity
Source: components/todoist/calendar.py:630
First occurred: 13:24:37 (1 occurrences)
Last logged: 13:24:37
Update for calendar.bil fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 515, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 743, in async_device_update
raise exc
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/todoist/calendar.py", line 312, in update
self.data.update()
File "/usr/src/homeassistant/homeassistant/components/todoist/calendar.py", line 630, in update
project_task_data = self._api.projects.get_data(self._id)[TASKS]
TypeError: string indices must be integers
### Additional information
The actual name of my project is `Bil 🚗`
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Troubleshooting the Todoist and Google Calendar integration
Here's what you need to check: 1. In Todoist, ensure you're adding tasks to the project that has been synced with Google Calendar....
Read more >Birthday Memes
I have a problem with Todoist Todoist hides its best features—think advanced filtering, task prioritization, and the all-important calendar syncing—behind a ...
Read more >Untitled
I have a problem with Todoist. It's a completely customizable way to find the most relevant tasks at any given moment. ⚠️ Platforms...
Read more >Todoist - Workaround to Emoji display issue - Super User
Todoist allows you to insert emojis into your project titles, label names, etc. This is very helpful especially for those who are more ......
Read more >19 Little-Known Todoist Features - Doist Blog
Todoist is designed to be simple to use, yet powerful enough to take on your ... Use project calendar feeds to visualize your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hey there @boralyl, mind taking a look at this issue as it has been labeled with an integration (
todoist) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)todoist documentation todoist source (message by IssueLinks)
I have pretty old install, but I am now seeing this too. Probably started a few weeks ago. I have no emoji in my name or projects.
Home Assistant OS 8.1 core-2022.2.9 supervisor-2022.11.2