diff --git a/custom_components/o365/todo.py b/custom_components/o365/todo.py index a47ada8..de44a5e 100644 --- a/custom_components/o365/todo.py +++ b/custom_components/o365/todo.py @@ -496,7 +496,7 @@ async def async_scan_for_todo_lists(self, call): # pylint: disable=unused-argum config = self._hass.data[DOMAIN][config] todo_sensor = config.get(CONF_TODO_SENSORS) if todo_sensor and CONF_ACCOUNT in config and todo_sensor.get(CONF_ENABLED): - todos = await self.hass.async_add_executor_job( + todos = await self._hass.async_add_executor_job( config[CONF_ACCOUNT].tasks )